N3RDIUM / PyCraft

A Minecraft clone written in python and glfw/OpenGL.
MIT License
17 stars 2 forks source link

Block shading overlay #65

Open N3RDIUM opened 2 years ago

N3RDIUM commented 2 years ago

Currently, PyCraft has plain textured blocks. We need to add some kind of shader, or a translucent overlay for shading blocks. We also need to add a new Lighting class in terrain/, which will store all the block shading values when the game is running. The shading value of a face depends on the lighting values of the nearby coordinates.