Revert brickmap sphere colour changes

This commit is contained in:
Jarrod Doyle 2023-04-29 14:50:59 +01:00
parent b857b5a157
commit b51f0b42e2
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@ impl VoxelRenderer {
if (pos - sphere_center).length_squared() <= sphere_r2 { if (pos - sphere_center).length_squared() <= sphere_r2 {
entry += 1 << idx; entry += 1 << idx;
let mut albedo = 0u32; let mut albedo = 0u32;
albedo += ((chunk_pos.x + 1) * 8 - 1) << 24; albedo += ((x + 1) * 32 - 1) << 24;
albedo += ((chunk_pos.y + 1) * 8 - 1) << 16; albedo += ((y + 1) * 32 - 1) << 16;
albedo += ((chunk_pos.z + 1) * 8 - 1) << 8; albedo += ((z + 1) * 32 - 1) << 8;
albedo += 255; albedo += 255;
albedo_data.push(albedo); albedo_data.push(albedo);
} }