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:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
SdfVolume
- Coordinate Types:
-
Color Field: (optional) Optional field used to calculate the color instead of the `Color` parameter.- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables:
sdf - Supports Variables From Inputs:
inputOp1
- Coordinate Types:
Variables
-
SDF Surface: