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

sampledPointMat

beta

A material that produces color for volumetric points relative to the input shape.

This is intended for use with pointMapRender. It isn’t useful for raymarchRender3d since that renderer only evaluates materials at points on the surface of the shape, and not inside/outside the shape.

Parameters

  • Enable:
  • Enable Fill: Whether to apply a color to points within the shape.
  • Fill Color: The color used within the shape.
  • Enable Edge: Whether to apply a color to points that are at/near the surface of the shape.
  • Edge Color: The color applied to points at/near the surface.
  • Edge Thickness: The thickness of the area inside/outside the surface where the `Edge Color` is applied.
  • Blending: The distance over which to blend between the inside color and the edge color.
  • Use Local Position: Whether to use the "local" position relative to the input shape when looking up colors using the `Color Field` input. If enabled, the coordinates used for the color field will be "before" any downstream transformations are applied. When disabled, the final global position where a point ends up in the render is used instead.
  • Use Surface Color:
  • Offset:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context
    • Return Types: Sdf
  • Fill Color Field: (optional) Optional field used to control the color within the shape.
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext
    • Return Types: float vec4
  • Edge Color Field: (optional) Optional field used to control the color at the surface.
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext
    • Return Types: float vec4

Variables

  • surfacecolor:
  • surfaceuv:
  • normal:
  • sdf: