From b51f0b42e2bed7fe34e7ad069aa05533640ff90d Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 29 Apr 2023 14:50:59 +0100 Subject: [PATCH] Revert brickmap sphere colour changes --- src/voxel/voxel_renderer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/voxel/voxel_renderer.rs b/src/voxel/voxel_renderer.rs index c9339c2..62b844d 100644 --- a/src/voxel/voxel_renderer.rs +++ b/src/voxel/voxel_renderer.rs @@ -80,9 +80,9 @@ impl VoxelRenderer { if (pos - sphere_center).length_squared() <= sphere_r2 { entry += 1 << idx; let mut albedo = 0u32; - albedo += ((chunk_pos.x + 1) * 8 - 1) << 24; - albedo += ((chunk_pos.y + 1) * 8 - 1) << 16; - albedo += ((chunk_pos.z + 1) * 8 - 1) << 8; + albedo += ((x + 1) * 32 - 1) << 24; + albedo += ((y + 1) * 32 - 1) << 16; + albedo += ((z + 1) * 32 - 1) << 8; albedo += 255; albedo_data.push(albedo); }