# How can I make a mirror which reflects only chosen things?

I'm making an animation and I would like to make a mirror which reflects only things which I choose. To be more specific, two characters are going to stand in front of the mirror, but there would be reflection of just one of them, like on this picture below:

Is there an option to make it in Blender?

• Maybe you can build shaders that don have specular bounces, but the easier way is to take advantage of the compositor. Have you tried that? – Carlo Jan 12 at 21:37
• To be honest, I have not tried anything, it's difficult to try while being a noob in compositor :/ – FilipBlend Jan 12 at 22:06
• Are you using cycles or eevee? – Christopher Bennett Jan 12 at 22:35
• I'm using cycles. @ChristopherBennett – FilipBlend Jan 12 at 22:36

Use this node setup for the material of the object you don't want reflected (in this case the red object). You can also use the "Is Reflection Ray" output of the light path node as a mix factor:

• Yeah, that's exactly what I want to achieve! It works - thank you so much :) – FilipBlend Jan 12 at 22:47
• If animated, you can go a step further with a math>subtract from -1 to 1 between the lightpath and factor to hide/reveal objects, makes an interesting effect in some cases.... – Timaroberts Jan 12 at 22:47
• Is the test Reflection Ray or Glossy Ray? – atomicbezierslinger Jan 13 at 1:16

## Composite view layers

You can take advantage of view layers and compositing. It's very flexible and collection-driven.

Create a collection with the objects that you don't want to appear in the mirror (s_vampire in this case).

Create two view layer and in one Disable the collection you created before: one with everything enabled called for example ref

And one othe called for example n vis with the collection disabled.

Now, just use cryptomatte layer to pick the mirror plane as a mask in the compositor:

The scene will be rendered 2 times and the mirror will show only the scene where the collection with s_vampire object is disabled. This is the result.