Skip to content

fadeEdgeRadial

fadeEdgeRadial(inputColor, inputUV, innerRadius?, outerRadius?): Node <"vec4">

Defined in: packages/nodes/src/alpha/fadeEdge.ts:57

Fade alpha in a circular pattern from center.

Node <"vec4">

The input color (vec4 with alpha)

Node <"vec2">

The UV coordinates

FloatInput = 0.3

Radius where fade starts (0-1)

FloatInput = 0.5

Radius where fully transparent (0-1)

Node <"vec4">

Color with radial-faded alpha

// Circular fade from 0.3 to 0.5 radius
fadeEdgeRadial(texture(tex, uv()), uv(), 0.3, 0.5)