Ignore:
Timestamp:
10/30/08 18:32:56 (16 years ago)
Author:
mattausch
Message:

trying to get ssao to work with dynamic objects

File:
1 edited

Legend:

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

    r3079 r3081  
    604604        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
    605605        GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture(); 
    606         GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    607606 
    608607        fbo->Bind(); 
     
    724723 
    725724        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
    726         GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    727725         
    728726        GLuint ssaoTex = mIllumFbo->GetColorBuffer(mIllumFboIndex)->GetTexture(); 
     
    774772        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
    775773        GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture(); 
    776         GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    777774 
    778775        GLuint shadowTex = shadowMap->GetDepthTexture(); 
     
    948945 
    949946 
     947/* 
     948void DeferredRenderer::BackProject(FrameBufferObject *fbo) 
     949{ 
     950        // back project new frame into old one and check 
     951        // if pixel still valid. store this property with ssao texture or even  
     952        // betteer with color / depth texture. This way 
     953        // we can sample this property together with the color / depth 
     954        // values and we do not require additional texture lookups 
     955        fbo->Bind(); 
     956 
     957        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
     958        //GLuint ssaoTex = mIllumFbo->GetColorBuffer(mIllumFboIndex)->GetTexture(); 
     959 
     960        // overwrite old color texture 
     961        //colorBufferIdx = 3 - colorBufferIdx; 
     962        //glDrawBuffers(1, mrt + colorBufferIdx); 
     963        //glDrawBuffers(1, mrt + colorBufferIdx); 
     964 
     965        sCgCombineSsaoProgram->SetTexture(0, colorsTex); 
     966        //sCgCombineSsaoProgram->SetTexture(1, ssaoTex); 
     967 
     968        DrawQuad(sCgBackProjectProgram); 
     969         
     970        PrintGLerror("combine ssao"); 
     971} 
     972*/ 
     973 
     974 
     975 
    950976} // namespace 
Note: See TracChangeset for help on using the changeset viewer.