How to apply PostProcess only to 1 of the sphere

Hey guys, so I am here trying to post process only on one of the sphere.
Currently it happens on both of them.
I read that you to do that, I would need at least a 2nd camera. I have added one (Free Camera), but I do not know how could I attach sphere2 to camera2 and show it without being PostProcessed (as it currently is in the demo).
I tried to playing around with layerMask, but I just cannot figure that one out.

Expected end result:

  • Sphere1 is post processed, Sphere2 is not.
  • Camera 2 keep the same position/follows? as the first camera. So it looks like there is only 1. As camera1 is the main one.

P.S.
What is my use case?
I have some meshes that I would like to be post processed and some of them not.
The Camera2 should be there only to show meshes/things that shouldn’t be included in the PostProcessing process

I appreciate any help :3

https://playground.babylonjs.com/#HTH45B#1

1 Like

Here we are:
attaching postprocess only to one of the spheres? | Babylon.js Playground (babylonjs.com)

I used the 2 cameras that you already have with layer masks :slight_smile:

2 Likes

That worked out! It finally starting to makes more sense after looking at your example. Thanks :3