Ignore:
Timestamp:
12/02/08 17:32:17 (16 years ago)
Author:
mattausch
Message:

as good as i cab do it right now but flickering when dynamic object enters + if dynamic object stops

File:
1 edited

Legend:

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

    r3204 r3205  
    305305        //-- the flip-flop fbos 
    306306 
    307         //const int dsw = w / 2; const int dsh = h / 2; 
    308         //const int dsw = 128; const int dsh = 96; 
    309         const int dsw = 16; const int dsh = 12; 
     307        const int dsw = w / 2; const int dsh = h / 2; 
    310308        //const int dsw = w; const int dsh = h; 
    311309 
     
    435433        string combineSsaoParams[] =  
    436434                {"colorsTex", "normalsTex", "ssaoTex", "filterOffs",  
    437                  "filterWeights", "modelViewProj", "bl", "br", "tl", "tr"}; 
    438         sCgCombineSsaoProgram->AddParameters(combineSsaoParams, 0, 10); 
     435                 "filterWeights", "modelViewProj", "bl", "br", "tl", "tr", "w", "h"}; 
     436        sCgCombineSsaoProgram->AddParameters(combineSsaoParams, 0, 12); 
    439437 
    440438        ////////////// 
     
    906904                sCgCombineSsaoProgram->SetValue3f(i, mCornersView[j].x, mCornersView[j].y, mCornersView[j].z); 
    907905 
     906        sCgCombineSsaoProgram->SetValue1f(i ++, mIllumFbo->GetColorBuffer(mIllumFboIndex)->GetWidth()); 
     907        sCgCombineSsaoProgram->SetValue1f(i ++, mIllumFbo->GetColorBuffer(mIllumFboIndex)->GetHeight()); 
     908 
    908909        DrawQuad(sCgCombineSsaoProgram); 
    909910         
Note: See TracChangeset for help on using the changeset viewer.