Ignore:
Timestamp:
11/02/08 17:35:59 (16 years ago)
Author:
mattausch
Message:

somehow working wih eye linear depth, but terrile precision (especially for objects farther in the background)!!!

File:
1 edited

Legend:

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

    r3085 r3087  
    267267        mDownSampleFbo = new FrameBufferObject(w / 2, h / 2, FrameBufferObject::DEPTH_NONE); 
    268268        mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
     269        // downsample buffer for the normal texture 
    269270        mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
    270271 
     
    272273 
    273274        // create noise texture for ssao 
    274         CreateNoiseTex2D(mDownSampleFbo->GetWidth(), mDownSampleFbo->GetHeight()); 
     275        CreateNoiseTex2D(mIllumFbo->GetWidth(), mIllumFbo->GetHeight()); 
    275276 
    276277        mProjViewMatrix = IdentityMatrix(); 
     
    504505 
    505506void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo,  
    506                                                                    float tempCohFactor 
    507                                                                     
    508                                                                    ) 
     507                                                                   float tempCohFactor) 
    509508{ 
    510509#if 0 
     
    516515#endif 
    517516 
     517        // flip flop between illumination buffers 
    518518        GLuint oldTex = mIllumFbo->GetColorBuffer(2 - mIllumFboIndex)->GetTexture(); 
    519519 
     
    571571        sCgSsaoProgram->SetValue3f(16, tl.x, tl.y, tl.z); 
    572572        sCgSsaoProgram->SetValue3f(17, tr.x, tr.y, tr.z); 
    573  
    574573 
    575574        DrawQuad(sCgSsaoProgram); 
Note: See TracChangeset for help on using the changeset viewer.