- Timestamp:
- 08/31/08 17:09:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.cpp
r2888 r2889 540 540 ComputeViewVectors(tl, tr, bl, br); 541 541 542 glColor3f(1.0f, 1.0f, 1.0f);543 544 542 glBegin(GL_QUADS); 545 543 … … 547 545 //const float new_offs = 0.55f; 548 546 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); 554 557 555 558 glEnd(); … … 574 577 mCamera->ComputePoints(ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr); 575 578 576 #if 1 // matT: debug this!!579 #if 1 577 580 578 581 bl = Normalize(nbl - fbl); … … 590 593 #endif 591 594 592 // normalizeto 0 .. 1593 bl = bl * 0.5f + 0.5f;595 // pack into 0 .. 1 596 /*bl = bl * 0.5f + 0.5f; 594 597 br = br * 0.5f + 0.5f; 595 598 tl = tl * 0.5f + 0.5f; 596 tr = tr * 0.5f + 0.5f; 599 tr = tr * 0.5f + 0.5f;*/ 597 600 } 598 601
Note: See TracChangeset
for help on using the changeset viewer.