Skip to content

Brick Brushes

Lachlan McDonald edited this page Jul 1, 2020 · 20 revisions

The Brick brushes generates alternating rows of randomly colored bricks.

There are two shaders, bricks and bricks_vert, that are functionally identical except bricks are offset vertically for bricks_vert and horizontally for bricks.

Shaders

Example of the bricks shader Example of the bricks_vert shader
bricks bricks_vert

Parameters

  • Direction: Facing direction of the bricks
  • Width: Width of the brick
  • Height: Height of each brick
  • Depth: Depth of each brick
  • Offset: Misalignment of bricks per row (a value of 0 will determine the misalignment automatically)
  • Color A: First color index
  • Color B: Last color index
  • Threshold: Likelihood of a brick being placed. The default of 1.0 means all bricks are placed, and lower values will result in missing bricks

Brick colors are chosen at random between Color A and Color B. Setting either of the colors to 0 will also result in missing bricks.

Direction

Example of direction 0 Example of direction 1
Direction: 0 Direction: 1
Example of direction 2 Example of direction 3
Direction: 2 Direction: 3

Threshold

Example of a threshold of 1.0 Example of a threshold of 0.8
Threshold: 1.0 Threshold: 0.8
Example of a threshold of 0.6 Example of a threshold of 0.4
Threshold: 0.6 Threshold: 0.4
Clone this wiki locally