GL_SPOT_DIRECTION
Hi,
i''ve been trying to manipulate the direction of a light source using
glLightfv( GL_LIGHT1, GL_SPOT_DIRECTION, LightDirection);
and guess what ... nothing happened. *g* Is there anything i could have done wrong? I mean, i can''t imagine that its hard to change the direction of a light ..
Second question: What do i have to make GL_SPOT_CUTOFF work for one textured Triangle (or quad or whatever) (or do i have to split the Triangle? )
Thanks,
Dave
If you're not paranoid, you're not paying attention!
If you have only one triangle, spot lights aren''t going to show up very well, the triangle will either be lit, or it won''t. Make a sphere or torus or something, then you can see it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement