- Timestamp:
- 10/09/08 11:48:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3017 r3018 898 898 cgGLSetParameter3f(sLightDirParam, lightDir.x, lightDir.y, lightDir.z); 899 899 900 901 glColor3f(1.0f, 1.0f, 1.0f); 902 900 Vector3 tl, tr, bl, br; 901 ComputeViewVectors(tl, tr, bl, br); 902 903 // note: slightly larger texture could hide ambient occlusion error on border but costs resolution 903 904 const float offs = 0.5f; 904 905 905 906 glBegin(GL_QUADS); 906 907 907 glTexCoord2f(0, 0); gl Vertex3f(-offs, -offs, -0.5f);908 glTexCoord2f(1, 0); gl Vertex3f( offs, -offs, -0.5f);909 glTexCoord2f(1, 1); gl Vertex3f( offs, offs, -0.5f);910 glTexCoord2f(0, 1); gl Vertex3f(-offs, offs, -0.5f);908 glTexCoord2f(0, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, bl.x, bl.y, bl.z); glVertex3f(-offs, -offs, -0.5f); 909 glTexCoord2f(1, 0); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, br.x, br.y, br.z); glVertex3f( offs, -offs, -0.5f); 910 glTexCoord2f(1, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tr.x, tr.y, tr.z); glVertex3f( offs, offs, -0.5f); 911 glTexCoord2f(0, 1); glMultiTexCoord3fARB(GL_TEXTURE1_ARB, tl.x, tl.y, tl.z); glVertex3f(-offs, offs, -0.5f); 911 912 912 913 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.