Skip to content

flashSmooth

flashSmooth(inputColor, progress, flashColor, peakTime, intensity): Node<"vec4">

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

Flash with smooth in and out transition.

Parameters

inputColor

Node<"vec4">

Base color

progress

FloatInput

Flash progress (0-1)

flashColor

Vec3Input = ...

Color of flash

peakTime

FloatInput = 0.2

When flash is brightest (0-1, default: 0.2)

intensity

FloatInput = 1

Peak intensity

Returns

Node<"vec4">

Color with smooth flash