Advertisement

GL_SPOT_DIRECTION

Started by April 17, 2001 05:40 PM
1 comment, last by Erzengel 23 years, 9 months ago
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.
Advertisement
hi,

i''ve open a thread weeks ago about spotlight. Check it out :
http://www.gamedev.net/community/forums/topic.asp?topic_id=41186
hope that help!

lunasol

This topic is closed to new replies.

Advertisement