Refract: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Example: I was wrong.)
No edit summary
Line 16: Line 16:


{{tip|<code>[[$refracttint]]</code> values greater than one can make it brighten instead of darken.}}
{{tip|<code>[[$refracttint]]</code> values greater than one can make it brighten instead of darken.}}
{{tip|<code>[[$bluramount]]</code> 1.0 // Defines how much the refraction should blur.}}
{{tip|<code>[[$refracttinttexture]]</code> ... // Defines a texture map for tinting the refraction.}}


== See also ==
== See also ==

Revision as of 07:45, 31 August 2009

A refracting func_brush.

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

Note.pngNote: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.pngTip:$refracttint values greater than one can make it brighten instead of darken.
Tip.pngTip:$bluramount 1.0 // Defines how much the refraction should blur.
Tip.pngTip:$refracttinttexture ... // Defines a texture map for tinting the refraction.

See also

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