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.
Parameters
inputColor
Node<"vec4">
Input color (vec4)
threshold
FloatInput = 0.8
Brightness threshold (0-1, default: 0.8)
softThreshold
FloatInput = 0.1
Soft threshold knee (0-1, default: 0.1)
Returns
Node<"vec4">
Extracted bright areas
Example
const brights = bloomThreshold(inputColor, 0.8)const blurred = blurKawase(brights, uv, ...)const final = inputColor.add(blurred)