Refract

From Valve Developer Community
Revision as of 14:02, 24 August 2009 by DeathByNukes (talk | contribs) (Example: I was wrong.)
Jump to: navigation, search
A refracting func_brush.

The Refract shaders distorts objects behind it. It is similar to Water, but does not reflect.

Note.png Note: The shader may not work when applied to world geometry. Make any brushes you want it applied to are attached to entities (excluding func_detail).

Example

Refract
{
	$normalmap ...			// Defines the refraction pattern; may be animated
	$dudvmap ...			// As above when running below DX9
	$refracttint "[1 1 1]"		// Colors the refraction
	$refractamount 0.2		// Refraction strength; use low values
}
Tip.png Tip: $refracttint values greater than one can make it brighten instead of darken.

See also

Template:Otherlang:en Template:Otherlang:en:fr