Ignore:
Timestamp:
08/26/08 16:27:11 (16 years ago)
Author:
mattausch
Message:

changed ssao to multipass algorithm

File:
1 edited

Legend:

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

    r2867 r2868  
    5555void DeferredShader::Init(CGcontext context) 
    5656{ 
    57          
    5857        sCgDeferredProgram =  
    5958                cgCreateProgramFromFile(context,  
     
    112111        GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    113112 
    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  
    122         // read the second buffer, write to the first buffer 
    123113        mFbo->Bind(); 
    124114 
Note: See TracChangeset for help on using the changeset viewer.