sampledPointMat

material
sampledPointMat
RayTK
v0.40

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

Name Description Regular Handling Read-Only Handling
Enable
Enable Fill

Whether to apply a color to points within the shape.

Runtime Semi-Baked
Fill Color

The color used within the shape.

Runtime Baked
Enable Edge

Whether to apply a color to points that are at/near the surface of the shape.

Runtime Semi-Baked
Edge Color

The color applied to points at/near the surface.

Runtime Baked
Edge Thickness

The thickness of the area inside/outside the surface where the Edge Color is applied.

Runtime Baked
Blending

The distance over which to blend between the inside color and the edge color.

Runtime Baked
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.

Baked Baked
Use Surface Color Runtime Semi-Baked
Offset Runtime Baked

Inputs

  • SDF: (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
    • Supports Variables: surfacecolor surfaceuv normal sdf
  • 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
    • Supports Variables: surfacecolor surfaceuv normal sdf
    • Supports Variables From Inputs: fillColorField

Variables

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