Camera block left and right side


can we add an overlay on top of the sides of the screen, so that even on a widescreen display, it hides anything that goes over the square in the middle of the screen?

The following is a circle.

you could use a Babylon layer for this :slight_smile: the last parameter is changing from background to foreground.

If you only rely on a vignette effect you can also enable it on any standardMat or PBRMat with:

scene.imageProcessingConfiguration.vignetteEnabled = true;

and configure with all properties:

1 Like

May you show a demo for me :slight_smile:

1 Like