Implementing lighting similar as in CubeWorld
- by Phito
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):
Do you have any ideas/link that could give me an idea of how to achieve that?
Thanks