refractedTaps
The child seen through a flute frame, with edge handling and a color split when aberration is above 0.
refractedTaps(
frame: GatherFrame,
opts: {aberration: PropRef; edges: PropRef},
): SampleStage
Import effects from shaders/std and use effects.blurs.refractedTaps.
edges is a prop with transform: transformEdges and compileTime: true. aberration is the same prop the frame uses; give it a recompile rule that fires when it crosses 0. Returns straight alpha, so close the stack with {resultAlpha: 'straight'}.
Parameters
| Name | Type | Notes |
|---|---|---|
frame | GatherFrame | |
opts | {aberration: PropRef; edges: PropRef} |
Example
effect: gatherStack(refractedTaps(flute, {aberration: p('aberration'), edges: p('edges')}), [fluteHighlight(flute, {lightAngle: 30, highlight: 0.2, softness: 0.3, color: p('highlightColor')})], {resultAlpha: 'straight'})
See also
fluteFrame— The geometry of fluted (reeded) glass over the child: where each pixel reads through the glass, how far its colors split, and the slope of the flute at that point.fluteHighlight— A specular highlight running along each flute, added on top of the child's color.crispTap— One clean sample of the child at a frame's warped coordinate.