How to make OpenGl Light Directional?

前端 未结 0 1052
梦毁少年i
梦毁少年i 2021-01-14 09:59

I wrote this code to make a red light in the y-direction. I want it to look like a spotlight. It is red but it lights everywhere, not just the y-direction. Any idea what to

相关标签:
回答
  • 消灭零回复
提交回复
热议问题