Implementing lighting similar as in CubeWorld

Posted by Phito on Game Development See other posts from Game Development or by Phito
Published on 2014-06-09T07:38:53Z Indexed on 2014/06/09 9:45 UTC
Read the original article Hit count: 224

Filed under:
|
|
|

I am currently writing a voxel engine and my goal is to achieve something looking like CubeWorld.

The problem that I am encountering is about lighting. I don't have a lot of knowledge in OpenGL but I don't think lighting in a game like that should be done with glLight. But beside that I have no idea of how to implement it.

Here's what I have for the moment (with glLight):

enter image description here

Do you have any ideas/link that could give me an idea of how to achieve that?

Thanks

© Game Development or respective owner

Related posts about opengl

Related posts about rendering