Skip to main content Link Menu Expand (external link) Document Search Copy Copied

colorizeSdf2d

Converts a 2D SDF to a striped distance pattern.

This pattern is useful for debugging purposes. While this is not a regular “material”, it is used to convert an SDF to a color output.

Parameters

  • Enable:
  • Enable Edge: Whether to show a border at the suface of the shape.
  • Edge Thickness: Thickness of the shape border.
  • Edge Blending: Amount of blending applied to each side of the shape border.
  • Edge Color: The color for the shape border.
  • Inside Period: The tightness of the stripes inside the shape.
  • Inside Color 1: The first stripe color inside the shape.
  • Inside Color 2: The second stripe color inside the shape.
  • Outside Period: The tightness fo the stripes outside the shape.
  • Outside Color 1: The first stripe color outside the shape.
  • Outside Color 2: The second stripe color outside the shape.
  • Inside Phase:
  • Outside Phase:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf