Skip to content

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.

Texture 

Source texture

Node <"vec2">

UV coordinates

FloatInput = 0

Current iteration offset (increases each pass)

Vec2Input = ...

Size of one texel in UV space

Node <"vec4">

Blurred color for this iteration

// Multi-pass Kawase blur
let 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])