Added day&night cycle. Also fixed world loading
Build / build (push) Has been cancelled

This commit is contained in:
milkwx3
2026-07-07 22:02:10 +03:00
parent 7ab2d5a083
commit 04d1969084
25 changed files with 3018 additions and 888 deletions
+6 -6
View File
@@ -72,7 +72,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx-1, wy, wz);
Color clr = GetLightMesher(world, wx-1, wy, wz);
colors.push_back(clr);
uvs.push_back(corners[0]);
@@ -112,7 +112,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx+1, wy, wz);
Color clr = GetLightMesher(world, wx+1, wy, wz);
colors.push_back(clr);
uvs.push_back(corners[0]);
@@ -152,7 +152,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx, wy-1, wz);
Color clr = GetLightMesher(world, wx, wy-1, wz);
colors.push_back(clr);
uvs.push_back(corners[0]);
@@ -192,7 +192,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx, wy+1, wz);
Color clr = GetLightMesher(world, wx, wy+1, wz);
colors.push_back(clr);
uvs.push_back(corners[0]);
@@ -232,7 +232,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx, wy, wz+1);
Color clr = GetLightMesher(world, wx, wy, wz+1);
colors.push_back(clr);
uvs.push_back(corners[0]);
@@ -272,7 +272,7 @@ MeshData GenerateChunkMesh(World &world, ChunkRenderData chunkRenderData, Chunk
positions.push_back(verts[3]);
normals.push_back(normal);
Color clr = GetLight(world, wx, wy, wz-1);
Color clr = GetLightMesher(world, wx, wy, wz-1);
colors.push_back(clr);
uvs.push_back(corners[0]);