assignColor
Shortcuts:
- ac
Keywords:
- color
- material
- modularmat
- surface
filter
assignColor
RayTK
v0.42
Assigns a surface color attribute to an SDF surface.
Various types of materials and fields can access and use the surface color attributes.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Color | Runtime | Baked | |
Assign When | Runtime | Baked | |
|
Inputs
-
SDF or Volume
: (required) SDF definition to which the color is applied.- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
Sdf
Volume
- Coordinate Types:
-
Color Field
: (optional) Optional field used to calculate the color instead of the `Color` parameter.- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Supports Variables:
sdf
- Supports Variables From Inputs:
inputOp1
- Coordinate Types:
Variables
-
SDF Surface
: