tintRamp
Maps a lighting value (0 dark, 1 light) onto two colors.
tintRamp(t: Expr, dark: Expr, light: Expr): Expr
Import materials from shaders/std and use materials.tintRamp.
Takes color props and returns rgb. The final tint of a material lit in grey.
Parameters
| Name | Type | Notes |
|---|---|---|
t | Expr | |
dark | Expr | |
light | Expr |
Example
const rgb = tintRamp(lit, u.darkColor, u.lightColor)
See also
neutralTone— Compresses bright color back into range without shifting its hue.cosineRainbow— A smooth rainbow color from a value that wraps every 1.