|
return j | (i * Constants.ChunkSize) | (k * Constants.ChunkSizeSquared); |
This could cause some confusion if someone changes the chunk size without making sure it aligns with bit shifts.
The easiest solution would be to change this to also be an addition instead, but the better for compute would be to change them all to bit-shift/ bitwise operations
meshing/Chunk.cs
Line 83 in 2c26c1b
This could cause some confusion if someone changes the chunk size without making sure it aligns with bit shifts.
The easiest solution would be to change this to also be an addition instead, but the better for compute would be to change them all to bit-shift/ bitwise operations