Going nuts on lights

BlitzMax Forums/OpenGL Module/Going nuts on lights

Ferret(Posted 2011) [#1]
I cant keep a light stationary, ive been trying for two days now.
I read so many articles, often telling me different things, that i'm more lost then when i started.

Last edited 2012


AntonyWells(Posted 2012) [#2]
Well, you could do it the modern way and use a GLSL shader, or iirc, you may have to reset the light position once per frame. I havn't used traditional built in lighting in years, so not sure.


Ferret(Posted 2012) [#3]
Ok, i do mi lighting in a GLSL shader now, i never enable opengl lighting but i get mi data, like position, from opengl lights.

Where in mi code do i need to reset the light position?
For example, how do i make a light move with the camera?

Last edited 2012