mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
decrease memory usage by storing chunk colours as 8bit (at the cost of slower mesh generation)
This commit is contained in:
@ -32,9 +32,9 @@ struct StandardWorldGenerator: WorldGenerator {
|
||||
if self.ravineMask.get(position * SIMD3(1, 0.441, 1)) >= 0.8 &&
|
||||
abs(self.ravineNoise.get(position * SIMD3(1, 0.6, 1))) <= 0.1 { return .air }
|
||||
#endif
|
||||
return .solid(.init(
|
||||
return .solid(Color<UInt8>(.init(
|
||||
hue: Float(180 + self.colorNoise.get(position) * 180),
|
||||
saturation: 0.47, value: 0.9).linear)
|
||||
saturation: 0.47, value: 0.9)))
|
||||
}
|
||||
|
||||
let chunkOrigin = chunkID.getPosition()
|
||||
|
Reference in New Issue
Block a user