Ignore:
Timestamp:
08/26/08 13:30:31 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.cpp

    r2866 r2867  
    4242        mFbo = new FrameBufferObject(w, h, FrameBufferObject::DEPTH_NONE); 
    4343        // 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); 
    4545} 
    4646 
     
    112112        GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    113113 
     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 
    114122        // read the second buffer, write to the first buffer 
    115123        mFbo->Bind(); 
Note: See TracChangeset for help on using the changeset viewer.