Ignore:
Timestamp:
08/31/08 17:09:46 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2888 r2889  
    540540        ComputeViewVectors(tl, tr, bl, br); 
    541541 
    542         glColor3f(1.0f, 1.0f, 1.0f); 
    543  
    544542        glBegin(GL_QUADS); 
    545543 
     
    547545        //const float new_offs = 0.55f; 
    548546        const float new_offs = 0.5f; 
    549          
    550         glColor3f(bl.x, bl.y, bl.z); glTexCoord2f(0, 0); glVertex3f(-new_offs, -new_offs, -0.5f); 
    551         glColor3f(br.x, br.y, br.z); glTexCoord2f(1, 0); glVertex3f( new_offs, -new_offs, -0.5f); 
    552         glColor3f(tr.x, tr.y, tr.z); glTexCoord2f(1, 1); glVertex3f( new_offs,  new_offs, -0.5f); 
    553         glColor3f(tl.x, tl.y, tl.z); glTexCoord2f(0, 1); glVertex3f(-new_offs,  new_offs, -0.5f); 
     547        /* 
     548        glTexCoord2f(0, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tl.x, tl.y, tl.z); glVertex3f(-new_offs, -new_offs, -0.5f); 
     549        glTexCoord2f(1, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tr.x, tr.y, tr.z); glVertex3f( new_offs, -new_offs, -0.5f); 
     550        glTexCoord2f(1, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, br.x, br.y, br.z); glVertex3f( new_offs,  new_offs, -0.5f); 
     551        glTexCoord2f(0, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, bl.x, bl.y, bl.z); glVertex3f(-new_offs,  new_offs, -0.5f); 
     552*/ 
     553        glTexCoord2f(0, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tr.x, tr.y, tr.z); glVertex3f(-new_offs, -new_offs, -0.5f); 
     554        glTexCoord2f(1, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tl.x, tl.y, tl.z); glVertex3f( new_offs, -new_offs, -0.5f); 
     555        glTexCoord2f(1, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, bl.x, bl.y, bl.z); glVertex3f( new_offs,  new_offs, -0.5f); 
     556        glTexCoord2f(0, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, br.x, br.y, br.z); glVertex3f(-new_offs,  new_offs, -0.5f); 
    554557 
    555558        glEnd(); 
     
    574577        mCamera->ComputePoints(ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr); 
    575578 
    576 #if 1 // matT: debug this!! 
     579#if 1 
    577580         
    578581        bl = Normalize(nbl - fbl); 
     
    590593#endif 
    591594 
    592         // normalize to 0 .. 1 
    593         bl = bl * 0.5f + 0.5f; 
     595        // pack into 0 .. 1 
     596        /*bl = bl * 0.5f + 0.5f; 
    594597        br = br * 0.5f + 0.5f; 
    595598        tl = tl * 0.5f + 0.5f; 
    596         tr = tr * 0.5f + 0.5f; 
     599        tr = tr * 0.5f + 0.5f;*/ 
    597600} 
    598601 
Note: See TracChangeset for help on using the changeset viewer.