Skip to content

Commit

Permalink
Fix: Motion Blur bug on WebGL
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Jun 5, 2024
1 parent eebdfff commit 43113a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motion-blur/MotionBlurFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class MotionBlurFilter extends Filter
resources: {
motionBlurUniforms: {
uVelocity: { value: options.velocity, type: 'vec2<f32>' },
uKernelSize: { value: Math.trunc(options.kernelSize ?? 5), type: 'f32' },
uKernelSize: { value: Math.trunc(options.kernelSize ?? 5), type: 'i32' },
uOffset: { value: options.offset, type: 'f32' },
}
},
Expand Down

0 comments on commit 43113a7

Please sign in to comment.