I Have a problem with Projective Texture:
is this corrected way to make the
TEXTURE MATRIX??
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glTranslatef(0.5,0.5,0);
glScalef(0.5,0.5,1);
gluPerspective(50.0f,1,.1,1);
glRotatef(LightRoty,0,1,0);
glRotatef(LightRotx,1,0,0);
glRotatef(LightRotz,0,0,1);
glTranslatef(LightPosx,LightPosy,LightPosz);
glMultMatrixf(obj3d->Matrix);
glMatrixMode(GL_MODELVIEW);
The Object Matrix is not Inverse.
Thanks in Advace