sampledPointMat
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 | 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 | Baked | Baked |
Use Surface Color | Runtime | Semi-Baked | |
Offset | Runtime | Baked |
Inputs
-
SDF
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
- Return Types:
Sdf
- Coordinate Types:
-
Offset Field
: (optional) Optional field used to control the color within the shape.- Coordinate Types:
float
vec2
vec3
- Context Types:
MaterialContext
- Return Types:
float
- Supports Variables:
surfacecolor
surfaceuv
normal
sdf
- Coordinate Types:
-
Blending Field
: (optional) Optional field used to control the color at the surface.- Coordinate Types:
float
vec2
vec3
- Context Types:
MaterialContext
- Return Types:
float
- Supports Variables:
surfacecolor
surfaceuv
normal
sdf
- Supports Variables From Inputs:
offsetField
- Coordinate Types:
-
Fill Color Field
: (optional)- Coordinate Types:
float
vec2
vec3
- Context Types:
MaterialContext
- Return Types:
float
vec4
- Supports Variables:
surfacecolor
surfaceuv
normal
sdf
- Supports Variables From Inputs:
offsetField
blendingField
- Coordinate Types:
-
Edge Color Field
: (optional)- Coordinate Types:
float
vec2
vec3
- Context Types:
MaterialContext
- Return Types:
float
vec4
- Supports Variables:
surfacecolor
surfaceuv
normal
sdf
- Supports Variables From Inputs:
offsetField
blendingField
fillColorField
- Coordinate Types:
Variables
-
Surface Color (r, g, b, is set)
: -
Surface UV (u, v, w, is set)
: -
Surface Normal
: -
SDF Surface
: