i ll give a example!
i have a space ship (my .obj model) light by green light (environment) and a red spot light come next to the space ship lighting the hull with constant velocity…
When you set your light position the first 3 parameter set the x,y,z position of the light but there’s a 4th parameter.
If you set it to 0 it means the light is a directional light ( from a point very far so it lights all the scene )
I solved my problem by setting it to 1
it means it’s a positional light ! it’s what you want !
try it and tell me if it was the same problem.