Skip to content

flash(inputColor, progress, flashColor?, intensity?): Node <"vec4">

Defined in: packages/nodes/src/vfx/flash.ts:19

Apply a flash effect - temporary color overlay that fades out. Useful for damage feedback, power-ups, or emphasis.

Node <"vec4">

Base color (vec4)

FloatInput

Flash progress (0 = start, 1 = end/invisible)

Vec3Input = ...

Color of the flash (default: white)

FloatInput = 1

Flash intensity at peak (default: 1)

Node <"vec4">

Color with flash overlay

// Trigger flash on hit, animate progress from 0 to 1
const flashed = flash(inputColor, flashProgress, [1, 1, 1])