Skip to content

Grass Brushes

Lachlan McDonald edited this page Jul 5, 2020 · 14 revisions

The Grass brushes generates randomly protruding lines of voxels with a constant distribution; similar to grass, small plants or similar surfaces. The height of the grass is affected by the brushes height.

There are two shaders, grass and grass_inv, that are functionally identical except grass protrude upwards and grass_inv extrudes downwards.

Parameters

Parameter Description
Mode Color mode (see below)
Density Size of the area in which a line should be generated. Increasing density will increase the spacing between lines
Growth Affects the growth of the lines. 0.5 is a fairly evenly-distributed growth. Higher or lower values will overgrow or stymied the heights, respectively
Seed Random seed
Color A First color index
Color B Last color index

Setting either of the colors to 0 will also result in empty voxels.

Mode

There are 4 distinct color modes for generating voxels, as outlined below:

Example of mode of 0 Example of mode of 1
Mode: 0 Mode: 1
The color of the line is dependant on its height. The color of each voxel in the line is chosen at random.
Example of mode of 2 Example of mode of 3
Mode: 2 Mode: 3
The color of the line is chosen at random. The color of the line is a gradient between Color A and Color B (regardless of height.)

Density

Example of a density of 1 Example of a density of 2
Density: 1 Density: 2
Example of a density of 3 Example of a density of 4
Density: 3 Density: 4

Growth

Example of a growth of 0.0 Example of a growth of 0.5
Growth: 0.0 Growth: 0.5
Example of a growth of 0.75 Example of a growth of 1.0
Growth: 0.75 Growth: 1.0

Examples

Example Example
Example Example
Clone this wiki locally