Skip to content

flashDamage

flashDamage(inputColor, progress, intensity): Node<"vec4">

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

Damage flash effect - quick red flash common in games.

Parameters

inputColor

Node<"vec4">

Base color

progress

FloatInput

Flash progress (0 = hit, 1 = recovered)

intensity

FloatInput = 0.7

Flash intensity

Returns

Node<"vec4">

Color with damage flash