Original Post
Hi,
i try to light my QUAD...
glNormalf(0.0, 1.0, 0.0);
glBegin(GL_QUAD);
glVertex3f(-50.0, 0.0, -50.0);
glVertex3f(-50.0, 0.0, 50.0);
glVertex3f( 50.0, 0.0, 50.0);
glVertex3f( 50.0, 0.0, -50.0);
glEnd();
... with a SPOT_LIGHT at Position...
x=0.0, y=10.0, z=0.0,
... with SPOT_DIRECTION to ...
x=0.0, y=-1.0, z=0.0
... and a CUT_OFF-Angle of 50.0.
The QUAD is only lighted when i increased
the CUT_OFF-Value to a higher one,
which light-cone of the angle includes
at least one Vertex of the QUAD...
What did i wrong ? How can i light the QUAD
without make sure that one vertex is in the
view of the spotlight ?
Hope anybody can help me !!!
thanks
Midhas