Skip to content

Diagonal Line Brush

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

The diagonal brush generates repeating diagonal (45° lines) of varying thicknesses determined by the selected colors in the palette.

Parameters

Parameter Description
Direction Direction of the lines on the Z-axis (see below)
Width A Width of the 4-nth line
Width B Width of the 4-nth + 1 line
Width C Width of the 4-nth + 2 line
Width D Width of the 4-nth + 3 line
Offset Adjusts the offset of the lines
Shuffle Adjusts the colors of the lines

The widths of the lines are independant of the number of selected colors from the palette:

  • Up to 4 different widths can be selected.
  • If a width is set to 0, it is skipped from the pattern. For example:
    • widths of 1 0 0 0 is the same as 1 1 1 1
    • widths of 1 0 2 0 is the same as 1 2 0 0 or 1 2 1 2
  • The colors and line widths repeat over and over, and can be adjusted with the Shuffle and Offset parameters, respectively.
An example of 6 colors and a Width A of 1, creating a pattern of 6 lines each 1 voxel wide. An example of 2 colors and Widths of 1, 2, 3, and 4. An example of 6 colors and a Width A of 1 and Width B of 3, creating a pattern of 6 colors each alternative between 1 and 3 voxels wide.

Directions

Example of a 'Direction' value of 0 Example of a 'Direction' value of 1 Example of a 'Direction' value of 2
Direction: 0 Direction: 1 Direction: 2
Example of a 'Direction' value of 3 Example of a 'Direction' value of 4 Example of a 'Direction' value of 5
Direction: 3 Direction: 4 Direction: 5

Notes

  • diagonal replaces diagonal2, diagonal3, and diagonal_range from previous releases.

Download

View the shaders below or download the latest release:

Clone this wiki locally