- Home /
Mirror reflecting another mirror ...
Hi guys,
is it possible to make a mirror reflect another mirror like in real life ? I found a nice script and a material for the mirror where i can attach it to a plane and it works perfectly, but when I face two of the mirrors they disappear from each ones reflection. I have no idea how to write a shader or a script to make this happen for the moment, so if there is a way to make it work it would be great. :)
Thanks.
It depends how you are doing reflections. Ordinarily (using reflection probes), you can just increase the reflection bounces in the lighting menu.
Answer by IgorAherne · Dec 24, 2016 at 11:08 PM
there is no way to get a dynamic, 2nd reflection (even with voxel global illumination) in games as of 2016.
However, you can achieve it with render textures in small places of your game, look up tutorials on youtube
From the sounds of it, they're using planar reflections. You could probably get away with rerendering the reflection camera multiple times, although I wouldn't know how to go about it. That is, however, how the reflection probe bounces are handled in Unity.
Actually, i tried something similar with tutorials on youtube. I used one camera faced at the main mirror that i took from this site ( wiki.unity3d.com, $$anonymous$$irrorReflection5), then i created a render texture and applied this texture to the camera which is faced to the main mirror (not the main camera) and applied again this render texture to the plane where camera is standing. The problem now is that when i run the game, the plane where the camera should project goes black and i need to take again the same steps to make it work, but again it crashes. If I don't press the play button on the editor the camera that reacts as a mirror in that plane works fine. Have no idea why this is happening.