# How to apply PostProcess only to 1 of the sphere

**URL:** <https://forum.babylonjs.com/t/how-to-apply-postprocess-only-to-1-of-the-sphere/52320>\
**Category:** Questions\
**Tags:** shader, layermask, postprocessing\
**Created:** [July 25, 2024, 2:22pm UTC](https://forum.babylonjs.com/t/how-to-apply-postprocess-only-to-1-of-the-sphere/52320 "2024-07-25T14:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagatori](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nagatori/32/41532_2.png) [@Nagatori](https://forum.babylonjs.com/u/Nagatori)\
**Post date:** [July 25, 2024, 2:22pm UTC](https://forum.babylonjs.com/t/how-to-apply-postprocess-only-to-1-of-the-sphere/52320/1 "2024-07-25T14:22:23Z")

</div>

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](https://playground.babylonjs.com/#HTH45B#1)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 25, 2024, 4:02pm UTC](https://forum.babylonjs.com/t/how-to-apply-postprocess-only-to-1-of-the-sphere/52320/2 "2024-07-25T16:02:26Z")

</div>

Here we are:  
[attaching postprocess only to one of the spheres? | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#HTH45B#2)

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

---

<div class="post-metadata">

**Author:** ![Nagatori](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nagatori/32/41532_2.png) [@Nagatori](https://forum.babylonjs.com/u/Nagatori)\
**Post date:** [July 26, 2024, 12:04pm UTC](https://forum.babylonjs.com/t/how-to-apply-postprocess-only-to-1-of-the-sphere/52320/3 "2024-07-26T12:04:37Z")

</div>

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