Changeset 25284
- Timestamp:
- Apr 18, 2021, 12:16:01 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/renderer/ShadowMap.cpp
r25269 r25284 715 715 shaderTech->EndPass(); 716 716 717 #if 0718 CMatrix3D InvTexTransform;719 720 m->TextureMatrix.GetInverse(InvTexTransform);721 722 // Render representative texture rectangle723 glPushMatrix();724 glMultMatrixf(&InvTexTransform._11);725 726 glEnable(GL_BLEND);727 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);728 glColor4ub(255,0,0,64);729 glBegin(GL_QUADS);730 glVertex3f(0.0, 0.0, 0.0);731 glVertex3f(1.0, 0.0, 0.0);732 glVertex3f(1.0, 1.0, 0.0);733 glVertex3f(0.0, 1.0, 0.0);734 glEnd();735 glDisable(GL_BLEND);736 737 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);738 glColor3ub(255,0,0);739 glBegin(GL_QUADS);740 glVertex3f(0.0, 0.0, 0.0);741 glVertex3f(1.0, 0.0, 0.0);742 glVertex3f(1.0, 1.0, 0.0);743 glVertex3f(0.0, 1.0, 0.0);744 glEnd();745 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);746 glPopMatrix();747 #endif748 749 717 glEnable(GL_CULL_FACE); 750 718 glDepthMask(1);
Note:
See TracChangeset
for help on using the changeset viewer.