spectralColorField
field
spectralColorField
RayTK
v0.42
Produces colors using rainbow spectrum patterns.
There are several spectrum types to choose from which balance the colors in different ways.
The field will produce a color based on either the Wavelength parameter, or values from the wavelength input field.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Wavelength | Constant value to use as the wavelength to map to a color. This is only used when there is no wavelength input field. | Runtime | Baked |
Wavelength Unit | How wavelength values should be interpreted. | Runtime | Baked |
| |||
Spectrum Type | Runtime | Baked | |
| |||
Inputs
-
Wavelength Field: (optional) Field that provides the wavelengths that the colors are based on.- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float
- Coordinate Types: