Skip to content
Lachlan McDonald edited this page Jun 9, 2020 · 28 revisions

The sand and sand2 shaders add a layer of voxels on top of voxels matching the selected colour.

Voxels are added randomly and only added when the voxel beneath has adjacent voxels, creating the effect of a rough pile of sand. The number of adjacent neighbours affects the randomness, with a higher number of neighbours increasing the odds a voxel will be added.

sand will only add voxels when the adjacent voxels match the selected color. Whereas, sand2 will add voxels if there are adjacent voxels of any color.

Parameters

Voxels are added on top of voxels matching the selected color.

  • Color: Color index for the voxels. If set to 0, the selected color index is used instead.
Clone this wiki locally