- Timestamp:
- 08/26/08 13:30:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.cpp
r2866 r2867 42 42 mFbo = new FrameBufferObject(w, h, FrameBufferObject::DEPTH_NONE); 43 43 // the diffuse color buffer 44 mFbo->AddColorBuffer( w, h, ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false, false);44 mFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 45 45 } 46 46 … … 112 112 GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 113 113 114 if (1) 115 { 116 glEnable(GL_TEXTURE_2D); 117 // generate mip map levels for position texture 118 glBindTexture(GL_TEXTURE_2D, colorsTex); 119 glGenerateMipmapEXT(GL_TEXTURE_2D); 120 } 121 114 122 // read the second buffer, write to the first buffer 115 123 mFbo->Bind();
Note: See TracChangeset
for help on using the changeset viewer.