rimLit

A tinted rim of light around the edge of a bulged surface, added on top of the child's color.

rimLit(frame: GatherFrame, opts: {
    position: ArgSpec
    intensity: ArgSpec
    softness: ArgSpec
    color: PropRef
}): OverlayStage

Import effects from shaders/std and use effects.blurs.rimLit.

position is where the light sits, in uv. intensity (0–1) is its strength, 0 for off. softness (0–1) runs from a hard edge to a soft glow. color is a color prop. Outside the frame's surface the result is transparent.

Parameters

NameTypeNotes
frameGatherFrame
opts`{
position: ArgSpec
intensity: ArgSpec
softness: ArgSpec
color: PropRef

}` | |

Example

rimLit(sphere, {position: p('lightPosition'), intensity: p('lightIntensity'), softness: p('lightSoftness'), color: p('lightColor')})

See also

  • sphereFrame — The geometry of a sphere bulging out of the canvas: where each pixel reads the child from, where the sphere ends, and which way its surface faces.
  • crispTap — One clean sample of the child at a frame's warped coordinate.
  • fluteHighlight — A specular highlight running along each flute, added on top of the child's color.

Used by

Spherize