straightFromPremul

The overlay output convention: the draw accumulator is premultiplied; the fragment returns straight alpha.

straightFromPremul(dst: string): string

Import effects from shaders/std and use effects.overlay.straightFromPremul.

Returns the final expression string.

Parameters

NameTypeNotes
dststring