Vignette in scene.imageProcessingConfiguration issue

Hi,
I’m trying to get the vignette working from scene.imageProcessingConfiguration.vignetteEnabled = true; but it seems that is only affecting the geometry and not the scene clearColor:


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

But if using a PostProcess, it seems to work ok (but it needs to add an fxaa postprocess to get rid of the antialiasing):


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

So, is it possible to enable the vignette to affect the whole scene (meshes and background) using scene.imageProcessingConfiguration instead of creating a separate post process?

Thanks

Unfortunately, no because without a postprocess we can only do it where pixels are drawn (so basically only on meshes)

You could wrap your scene in a box like we do with skybox so it would apply.

Thanks @sebavan that workaround works fine in my current project, setting a wrapping mesh with infiniteDistance=true .

1 Like