This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user