bettola/srv/game
Ritchie Cunningham fa7159587d [Add] Terrain lighting.
* Chunks are now rendered as solid, lit meshes instead of wireframe.
* The GLSL shaders have been updated to a directional lighting model.
* Chunkmes now calculates normal vectors for each vertex to enable the
  lighting.
* Shader class now has a 'set_vec3' method for sending lighting date to
  the GPU.

Bug Fix:
* Resolves visual artifacts and "seams" at chunk boundaries.

Next up:
* To calculate the correct angle for a vertex at the edge of chunk A, we
  need to know the height of the terrain in the neighboiring Chunk B.
Since it doesn't have that information, the GPU's making an appoximate
guess. We need to generate and send a small "border" of height data
along with each chunk, I'll do this by increasing the size of the
heightmap array in the network message so it can hold the 32x32 chunk
plus 1 vertex border all around. MAking it 34x34 for each chunk.
2025-09-16 23:58:03 +01:00
..
game_send_chunks.cpp [Add] Initial terrain generation. 2025-09-16 20:49:00 +01:00
game.cpp [Add] Terrain collision and gravity. 2025-09-16 22:13:15 +01:00
game.h [Add] Initial terrain generation. 2025-09-16 20:49:00 +01:00
player.cpp [Refactor] Unify client and server player classes. 2025-09-16 00:10:35 +01:00
player.h [Refactor] Unify client and server player classes. 2025-09-16 00:10:35 +01:00
world_collision.cpp [Add] Terrain lighting. 2025-09-16 23:58:03 +01:00
world.cpp [Add] Terrain lighting. 2025-09-16 23:58:03 +01:00
world.h [Add] Terrain collision and gravity. 2025-09-16 22:13:15 +01:00