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