Toggle ImageProcessingPostProcess

I’m trying to toggle the vingette post process on and off, but even when the post process is detached, there appears to be left over effects on the screen.

Take a look at this:

https://playground.babylonjs.com/#J9H084#166

Try uncommenting the post processing code.

A scene with no postprocessing added looks different than one that has the post process added, and detached.

Is there a better way to toggle the post processing off completely?

When you create an image processing post process it stays enabled (at least for the linear/gamma conversion performed in the end) for the scene even if not attached to a camera. You need to call this to disable it:

postProcess.imageProcessingConfiguration.isEnabled = false;

That did it. Much appreciated.