
Lighting position problem
Hi. I have a problem with Light. In my render function I use gluLookAt to position camera in the scene. At the Initialization() function I position the light at for example (100,100,0) but when I move the camera, the light also move, and I don''t know how to make this one fixed. For example, If I have a cube in (200,200,200) and I load the light at this position too, if I move my camera I want that the light move with the cube also.
A lot of thank

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement