# Regarding whether objects are affected by glass when a camera looks through it. 

**URL:** <https://forums.unrealengine.com/t/regarding-whether-objects-are-affected-by-glass-when-a-camera-looks-through-it/2458115>\
**Category:** Game Production\
**Tags:** unreal-engine, question\
**Created:** [April 15, 2025, 1:35pm UTC](https://forums.unrealengine.com/t/regarding-whether-objects-are-affected-by-glass-when-a-camera-looks-through-it/2458115 "2025-04-15T13:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chunmangii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chunmangii](https://forums.unrealengine.com/u/chunmangii)\
**Post date:** [April 15, 2025, 1:35pm UTC](https://forums.unrealengine.com/t/regarding-whether-objects-are-affected-by-glass-when-a-camera-looks-through-it/2458115/1 "2025-04-15T13:35:40Z")

</div>

I made a colored glass object with two people behind it. I need to be able to see the two people through the glass when the game is running. The glass should only affect one of them, while the other remains unaffected by the glass. How can this function be achieved?

---

<div class="post-metadata">

**Author:** ![Furqan\_Hamid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Furqan\_Hamid](https://forums.unrealengine.com/u/Furqan_Hamid)\
**Post date:** [April 15, 2025, 3:43pm UTC](https://forums.unrealengine.com/t/regarding-whether-objects-are-affected-by-glass-when-a-camera-looks-through-it/2458115/2 "2025-04-15T15:43:35Z")

</div>

To achieve that, you can use custom depth or stencil buffers. Render the unaffected character on a separate render layer or with a different material pass that ignores the glass refraction. It’s a bit like selectively applying effects in post-process—gives you full control over who the glass “touches” visually.
