MirrorReflection2

Author: Aras Pranckevicius

Description
This is shader+script to make perfectly reflective mirrors, for Unity 2.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 2.x Pro. Works in scene view as well!

See also: Mirror Reflection for Unity 1.x.

Usage
Prerequisites: This technique requires Unity 2.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.

Example
A small example project folder can be found here:
 * [[Media:MirrorReflection2.zip|MirrorReflection2.zip]]

Changelog

 * 2007 November 12 - Works with orthographic cameras
 * 2007 November 8 - Support multiple materials on the mirror object
 * 2007 October 22 - Initial version