spectralColorField

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
  • Normalized (0..1): Normalized to a 0..1 range.
  • Nanometer (400..700): Nanometers.
Spectrum Type Runtime Baked
  • Zucconi:
  • Zucconi 6:
  • MATLAB Jet Color Scheme:
  • GPU Gems:
  • Bruton:
  • Spektre:

Inputs

  • Wavelength Field: (optional) Field that provides the wavelengths that the colors are based on.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float