785 |
*/ |
*/ |
786 |
float texf = 0.5; |
float texf = 0.5; |
787 |
|
|
788 |
glActiveTexture(GL_TEXTURE1); |
glActiveTextureARB(GL_TEXTURE1_ARB); |
789 |
glPushMatrix(); |
glPushMatrix(); |
790 |
AffineCoords cs2 = coords2; |
AffineCoords cs2 = coords2; |
791 |
if (mode) { |
if (mode) { |
799 |
glTexGenfv(GL_S, GL_EYE_PLANE, svec); |
glTexGenfv(GL_S, GL_EYE_PLANE, svec); |
800 |
glTexGenfv(GL_T, GL_EYE_PLANE, tvec); |
glTexGenfv(GL_T, GL_EYE_PLANE, tvec); |
801 |
glPopMatrix(); |
glPopMatrix(); |
802 |
glActiveTexture(GL_TEXTURE0); |
glActiveTextureARB(GL_TEXTURE0_ARB); |
803 |
|
|
804 |
for (unsigned i = 0; i < sizeof(sides)/sizeof(sides[0]); i++) { |
for (unsigned i = 0; i < sizeof(sides)/sizeof(sides[0]); i++) { |
805 |
ZPt tex0 = cs2inv.transform(coords1.transform(lerp(texf, sides[i][3], sides[i][0]))); |
ZPt tex0 = cs2inv.transform(coords1.transform(lerp(texf, sides[i][3], sides[i][0]))); |