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/chcdemo.cpp

    r2867 r2868  
    425425        InitCg(); 
    426426 
     427        DeferredShader::Init(sCgContext); 
    427428        SsaoShader::Init(sCgContext); 
    428         DeferredShader::Init(sCgContext); 
    429  
     429 
     430        deferredShader = new DeferredShader(texWidth, texHeight); 
    430431        ssaoShader = new SsaoShader(texWidth, texHeight, camera, myfar / 10.0f); 
    431         deferredShader = new DeferredShader(texWidth, texHeight); 
    432432 
    433433        // initialize the render traverser 
     
    539539        // the diffuse color buffer 
    540540        fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 
     541 
    541542        // the positions buffer 
    542543        fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_MIPMAP_LINEAR, true); 
    543544        //fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, true); 
     545         
    544546        // the normals buffer 
    545547        //fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 
Note: See TracChangeset for help on using the changeset viewer.