开发者

How to add lighting in my game in java LWJGL?

开发者 https://www.devze.com 2023-03-26 22:38 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消