Skip to content

Brick Brushes

Lachlan McDonald edited this page Jun 29, 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 bricks Example of the bricks_vert shader 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 1 Direction: 0 Example of direction 1 Direction: 1
Example of direction 1 Direction: 2 Example of direction 1 Direction: 3

Threshold

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