How to add lighting in my game in java LWJGL?
How to add lighting in my game in java LWJGL? I know how to add lighting in C + +, but I do not know how to change it to LWJGL. Can you give me 开发者_开发百科an example of how to do this?
If you know the OpenGL C++ API you should be able to do the same in LWJGL. What's the exact problem? Which kind of lighting do you use - built-in via light objects or shaders?
Check out NeHe's tutorial on this: NeHe tutorial on lighting in openGL You can download a version for LWJGL at the bottom of that tutorial.
精彩评论