开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜