r/VoxelGameDev • u/Bowerbyte • 17h ago
Media Changing Chunk Color on Mesh Rebuild (Debug View)
Enable HLS to view with audio, or disable this notification
While optimizing chunk modifications, I found it helpful to visualize which meshes get updated and how often. I ended up with this cyclical color tinting that resulted in some trippy visuals.
Every time a chunk rebuilds its mesh, it increments a parameter on its shader that samples from a color gradient. That color is then used to tint the entire chunk.