Skip to content

Commit

Permalink
Fix: Bug with Motion Blur on WebGL (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Jun 5, 2024
1 parent eebdfff commit 9774137
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 9774137

Please sign in to comment.