Skip to content

Commit 43113a7

Browse files
committed
Fix: Motion Blur bug on WebGL
1 parent eebdfff commit 43113a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/motion-blur/MotionBlurFilter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class MotionBlurFilter extends Filter
106106
resources: {
107107
motionBlurUniforms: {
108108
uVelocity: { value: options.velocity, type: 'vec2<f32>' },
109-
uKernelSize: { value: Math.trunc(options.kernelSize ?? 5), type: 'f32' },
109+
uKernelSize: { value: Math.trunc(options.kernelSize ?? 5), type: 'i32' },
110110
uOffset: { value: options.offset, type: 'f32' },
111111
}
112112
},

0 commit comments

Comments
 (0)