Changeset 2881 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/29/08 00:00:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2879 r2881 322 322 //cout << "model path: " << model_path << endl; 323 323 324 cout << "**** end parameters ****" << endl ;324 cout << "**** end parameters ****" << endl << endl; 325 325 } 326 326 … … 537 537 // this fbo basicly stores the scene information we get from standard rendering of a frame 538 538 // we store colors, normals, positions (for the ssao) 539 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_ 32);539 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_24); 540 540 541 541 // the diffuse color buffer … … 879 879 cgGLDisableProfile(RenderState::sCgVertexProfile); 880 880 881 glDrawBuffers(1, mrt);882 883 881 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 884 882 … … 901 899 glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); 902 900 903 glDrawBuffers(1, mrt);904 905 901 break; 906 902 … … 980 976 if (renderType == RenderState::DEFERRED) 981 977 { 982 fbo->Release();978 FrameBufferObject::Release(); 983 979 984 980 cgGLDisableProfile(RenderState::sCgVertexProfile); 985 981 cgGLDisableProfile(RenderState::sCgFragmentProfile); 986 987 glDrawBuffers(1, mrt);988 982 989 983 if (useSsao) … … 991 985 if (!ssaoShader) ssaoShader = new SsaoShader(texWidth, texHeight, camera, myfar / 10.0f); 992 986 //DEL_PTR(deferredShader); 993 994 987 ssaoShader->Render(fbo, oldViewProjMatrix, ssaoExpFactor); 995 988 … … 999 992 if (!deferredShader) deferredShader = new DeferredShader(texWidth, texHeight); 1000 993 //DEL_PTR(ssaoShader); 1001 1002 994 deferredShader->Render(fbo); 1003 995 }
Note: See TracChangeset
for help on using the changeset viewer.