blurKawase
blurKawase(
tex,uv,offset?,texelSize?):Node<"vec4">
Defined in: packages/nodes/src/blur/blurKawase.ts:23
Kawase blur - fast, iterative blur technique. Used in many games for efficient bloom/blur effects. Each iteration doubles the effective blur radius.
Parameters
Section titled “Parameters”Source texture
Node <"vec2">
UV coordinates
offset?
Section titled “offset?”FloatInput = 0
Current iteration offset (increases each pass)
texelSize?
Section titled “texelSize?”Vec2Input = ...
Size of one texel in UV space
Returns
Section titled “Returns”Node <"vec4">
Blurred color for this iteration
Example
Section titled “Example”// Multi-pass Kawase blurlet blurred = blurKawase(texture, uv, 0, [1/width, 1/height])blurred = blurKawase(blurred, uv, 1, [1/width, 1/height])blurred = blurKawase(blurred, uv, 2, [1/width, 1/height])