GLSL point light shader moving with camera

前端 未结 2 639
鱼传尺愫
鱼传尺愫 2021-01-24 08:00

I\'ve been trying to make a basic static point light using shaders for an LWJGL game, but it appears as if the light is moving as the camera\'s position is being translated and

2条回答
  •  死守一世寂寞
    2021-01-24 09:06

    If anyone's interested, I ended up finding the solution. Removing the calls to gl_NormalMatrix and gl_ModelViewMatrix solved the problem.

提交回复
热议问题