diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-01-04 21:42:54 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-01-04 21:42:54 +0000 |
| commit | 64a4a42ee6826584c38c09a2b5976356e4488993 (patch) | |
| tree | 3143e5ba192dbc78f110670e76f45e314fcf6910 /src/testApp.cpp | |
| parent | 8b01f111e874493d0c3ecb0113a7639116c09c5c (diff) | |
got the lighting trick
Diffstat (limited to 'src/testApp.cpp')
| -rw-r--r-- | src/testApp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testApp.cpp b/src/testApp.cpp index e9ae5ee..5bd6f0a 100644 --- a/src/testApp.cpp +++ b/src/testApp.cpp @@ -4,16 +4,18 @@ void testApp::setup(){ ofBackground(0,0,0); + ///ofSetVerticalSync(true); //some model / light stuff glEnable (GL_DEPTH_TEST); glShadeModel (GL_SMOOTH); - // initialize lighting + //initialize lighting //glEnable (GL_LIGHTING); glColorMaterial (GL_FRONT_AND_BACK, GL_DIFFUSE); glEnable (GL_COLOR_MATERIAL); + //load the bottle model - the 3ds and the texture file need to be in the same folder bottle.loadModel("bottle.3DS", 1); |
