flash
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.
Parameters
inputColor
Node<"vec4">
Base color (vec4)
progress
Flash progress (0 = start, 1 = end/invisible)
flashColor
Vec3Input = ...
Color of the flash (default: white)
intensity
FloatInput = 1
Flash intensity at peak (default: 1)
Returns
Node<"vec4">
Color with flash overlay
Example
// Trigger flash on hit, animate progress from 0 to 1const flashed = flash(inputColor, flashProgress, [1, 1, 1])