Skip to content

bloomThreshold

bloomThreshold(inputColor, threshold?, softThreshold?): Node <"vec4">

Defined in: packages/nodes/src/blur/bloom.ts:25

Extract bright areas for bloom effect. Returns only pixels above a brightness threshold.

Node <"vec4">

Input color (vec4)

FloatInput = 0.8

Brightness threshold (0-1, default: 0.8)

FloatInput = 0.1

Soft threshold knee (0-1, default: 0.1)

Node <"vec4">

Extracted bright areas

const brights = bloomThreshold(inputColor, 0.8)
const blurred = blurKawase(brights, uv, ...)
const final = inputColor.add(blurred)