decrease memory usage by storing chunk colours as 8bit (at the cost of slower mesh generation)

This commit is contained in:
2024-09-09 02:34:04 +10:00
parent 53e1f9cc7e
commit d4b1377238
4 changed files with 6 additions and 6 deletions

View File

@ -123,7 +123,7 @@ public struct Chunk: Hashable {
public enum BlockType: Hashable {
case air
case solid(_ color: Color<Float>)
case solid(_ color: Color<UInt8>)
}
public struct Block: Hashable {