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