- Timestamp:
- 08/22/08 13:20:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.cpp
r2859 r2861 35 35 36 36 37 DeferredShader::~DeferredShader() 38 { 39 if (sCgDeferredProgram) 40 cgDestroyProgram(sCgDeferredProgram); 41 } 42 43 37 44 void DeferredShader::Init(CGcontext context) 38 45 { … … 65 72 void DeferredShader::Render(FrameBufferObject *fbo) 66 73 { 67 GLuint positionsTex = fbo->GetColorBuffer(0)->GetTexture(); 74 FrameBufferObject::Release(); 75 68 76 GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); 69 GLuint normalsTex = fbo->GetColorBuffer(0)->GetTexture(); 77 GLuint positionsTex = fbo->GetColorBuffer(1)->GetTexture(); 78 GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 70 79 71 80 glPushAttrib(GL_VIEWPORT_BIT); … … 103 112 104 113 glColor3f(1.0f, 1.0f, 1.0f); 105 114 106 115 glBegin(GL_QUADS); 107 116
Note: See TracChangeset
for help on using the changeset viewer.