Documentation

ContourLines

Draw topographical contour lines based on luminance or alpha

Props

levelsnumber
Default:5
Number of contour levels
lineWidthnumber
Default:2
Width of the contour lines in pixels
softnessnumber
Default:0
Edge softness of the lines (0 = sharp, 1 = soft)
gammanumber
Default:0.5
Contour distribution. <1 clusters in bright, >1 clusters in dark
invertboolean
Default:false
Invert the source values
source"luminance" | "alpha"
Default:luminance
Use luminance or alpha channel for contours
colorMode"source" | "custom"
Default:source
Use source image colors or custom colors
lineColorstring
Default:#000000
Color of the contour lines (custom mode)
backgroundColorstring
Default:transparent
Background color (custom mode)

Usage

<Shader>
  <ContourLines>
    <Circle />
  </ContourLines>
</Shader>