Enabling/disabling motion blur

I know that I can set motionBlur.motionStrength = 0; but I think that under the hood it is still taking some resources, is there any chance (without disposing it) to enable/disable that effect?

Adding the brillant motion blur daddy @julien-moreau to the party

2 Likes

Hi!
I believe this will do the job:

camera.detachPostProcess(motionBlurPostProcess)

You can reattach the postprocess by camera.attachPostProcess again without disposing it.

https://playground.babylonjs.com/#9LRA3T#27

Line 42

2 Likes

Thanks!

2 Likes