- Home /
Mirror effect over more than one surface/plane
Hi
I'm from Spain and i hope that all that i will say in english can be understood xD
ok...i'm looking for a mirror effect in unity and the best solution that i have found is "MirrorReflection2", in the wiki. But in the practice i have seen that i can only have an object with the effect because if i have two or more, only the last "works" and the same reflection is seen in all they.
Some idea or i will have to get used to the idea? (T_T)
Thanks :) Ciao
Answer by Macdude2 · Jun 15, 2011 at 02:24 AM
I think the reason it won't work with two or more reflections is that the two render textures that are being created have the same name - ""__MirrorReflection" + GetInstanceID()". So what you might try is making boolean and saying
if(secondreflect){
m_ReflectionTexture.name = "__MirrorReflection2" + GetInstanceID(); }
I am not sure if this will work, but it is worth a try.