Skip to content

Grass Brush

Lachlan McDonald edited this page May 11, 2022 · 14 revisions

The Grass brush generates random columns of voxels with a constant distribution; similar to grass or small plants.

The height of the grass is affected by the brush height and the color of the voxels is determined by the selected colors in the palette.

This shader is similar to the Grass Fit shader, which it is applied to the entire volume.

Parameters

Parameter Description
Direction When 0, line extends upwards. When 1, line hangs downwards
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. 50 is a evenly-distributed growth. Higher or lower values will overgrow or stymied the growth, respectively
Seed Global seed

Mode

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

Example of a 'Mode' value of 0 Example of a 'Mode' value 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 a 'Mode' value of 2 Example of a 'Mode' value 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' value of 1 Example of a 'Density' value of 2
Density: 1 Density: 2
Example of a 'Density' value of 3 Example of a 'Density' value of 4
Density: 3 Density: 4

Growth

Example of a 'Growth' value of 0 Example of a 'Growth' value of 50
Growth: 0 Growth: 50
Example of a 'Growth' value of 75 Example of a 'Growth' value of 100
Growth: 75 Growth: 100

Examples

Example Example
Example Example

Notes

  • The grass_inv shader was replaced by the Direction parameter

Download

View the shaders below or download the latest release:

Clone this wiki locally