ramp_rgb

Class

Shader

Output

RGB

synopsis
Remap input value to an RGB color on a curve. Either UV coordinates or linked shader like a texture or noise can be used as input.

 


 

type

Allows you to select from built-in ramp modes (like u, v, circular, etc.) or a custom mode where the mapping is controlled by the input parameter.

Time computes the input based on the current time and the camera's start and end shutter interval. In the images below, the motion-blurred planes have a flat shader that changes colors through the shutter time.

input

Allows the value/color of an incoming shader to be remapped.
position
A float array of curve point input locations.
color
An RGB array of curve point output values.
interpolation

Integer array of interpolation types for each curve point. The available types are:

uvset
UV set to use for input coordinates.
use_implicit_uvs

Use the implicit (barycentric) per-primitive coordinates instead of the UVs. This is mostly useful with curves where it gives coordinates varying along each hair strand.

wrap_uvs
Wraps the input UV coordinates between [0,1] so that it applies to different UV ranges or UDIMs.

 

 

 

  • No labels