edgeGlowCompose
The final color from the folded state, over a transparent background.
edgeGlowCompose(
st: { rgb: v3f; w: number; ba: number; ac: v3f; aa: number; },
bloom: number,
): v4f
Import effects from shaders/std and use effects.edgeGlow.edgeGlowCompose.
bloom (0 to 1) sets how additively overlapping lights pile up; high values overdrive to white. Returns straight alpha, ready to return from the surface function.
Parameters
| Name | Type | Notes |
|---|---|---|
args | [st: { rgb: v3f; w: number; ba: number; ac: v3f; aa: number; }, bloom: number] |
Example
return call(edgeGlowCompose, 'edgeGlowCompose', [state, uniforms.bloom])
See also
edgeGlowAccumColorFor— The fold step for one color space: adds one color's spots to the running state.