MirrorReflection3

Author: Original = Aras Pranckevicius Update = Unfathomable Chaos

Note
This is Aras Pranckevicius' mirror shader and script updated to work for Unity 3.x. Thanks to him for making the original scripts and shaders. His original description follows:

See also: Mirror Reflection for Unity 2.x.

Description
This is shader+script to make perfectly reflective mirrors, for Unity 3.x. Use the FX/Mirror Reflection shader on an object, attach the MirrorReflection script to it and there you are.

Works about everywhere (dual texture cards, i.e. TNT2 and up). Requires Unity 3.x Pro. Works in scene view as well!

Usage
Prerequisites: This technique requires Unity 3.x Pro.


 * Create a material that uses the shader below (FX/Mirror Reflection)
 * Use this material on a plane-like (i.e. flat) object.
 * Set this object to use Water layer.
 * Attach the MirrorReflection to the same object.

Notes:
 * The reflection happens along object's 'up' direction (green axis in the scene view). E.g. the builtin plane object is suitable for use as a mirror. If you experience weird reflection, check whether your mirror object is oriented correctly.

Changelog

 * "2012 January 27" Updated shader to work with Unity 3.x.