Ignore:
Timestamp:
08/26/08 20:45:40 (16 years ago)
Author:
mattausch
Message:

working with 50 frames

File:
1 edited

Legend:

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

    r2869 r2871  
    8787        // the diffuse color buffer 
    8888        mNewFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 
     89        mNewFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 
    8990         
    9091        mOldFbo = new FrameBufferObject(w, h, FrameBufferObject::DEPTH_NONE); 
    9192        // the diffuse color buffer 
     93        mOldFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 
    9294        mOldFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 
    9395         
     
    140142 
    141143 
    142         sCgCombineProgram =  
     144        /*sCgCombineProgram =  
    143145                cgCreateProgramFromFile(context,  
    144146                                                                CG_SOURCE, 
     
    158160        else 
    159161                cerr << "combined program failed to load" << endl; 
    160  
     162*/ 
    161163 
    162164        /////////////// 
     
    257259        FirstPass(fbo); 
    258260        ComputeSsao(fbo, expFactor); 
    259         Combine(fbo); 
     261        //Combine(fbo); 
    260262        AntiAliasing(fbo); 
    261263 
     
    291293        // read the second buffer, write to the first buffer 
    292294        mNewFbo->Bind(); 
    293         glDrawBuffers(1, mymrt); 
     295        glDrawBuffers(2, mymrt); 
    294296 
    295297        GLuint oldTex = mOldFbo->GetColorBuffer(0)->GetTexture(); 
     
    443445void SsaoShader::AntiAliasing(FrameBufferObject *fbo) 
    444446{ 
    445         GLuint colorsTex = mFbo4->GetColorBuffer(0)->GetTexture(); 
    446         //GLuint colorsTex = mNewFbo->GetColorBuffer(0)->GetTexture(); 
     447        //GLuint colorsTex = mFbo4->GetColorBuffer(0)->GetTexture(); 
     448        GLuint colorsTex = mNewFbo->GetColorBuffer(1)->GetTexture(); 
    447449        GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    448450         
Note: See TracChangeset for help on using the changeset viewer.