mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 05:10:57 +00:00
decrease memory usage by storing chunk colours as 8bit (at the cost of slower mesh generation)
This commit is contained in:
@ -13,7 +13,7 @@ struct ChunkMeshBuilder {
|
||||
.init(
|
||||
position: SIMD3(position) + $0.position,
|
||||
normal: $0.normal,
|
||||
color: SIMD4(color),
|
||||
color: SIMD4(Color<Float>(color).linear),
|
||||
texCoord: $0.texCoord)
|
||||
})
|
||||
indices.append(contentsOf: sideIndices.map { orig + $0 })
|
||||
|
Reference in New Issue
Block a user