Difference between revisions of "Refract"
m (The shader does work on world geometry. Because the people that wrote that may know more than me, I'm just changing 'will' to 'may') |
DeathByNukes (talk | contribs) (→Example: I was wrong.) |
||
Line 15: | Line 15: | ||
} | } | ||
− | {{tip|<code>[[$ | + | {{tip|<code>[[$refracttint]]</code> values greater than one can make it brighten instead of darken.}} |
== See also == | == See also == |
Revision as of 14:02, 24 August 2009

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

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 }

$refracttint
values greater than one can make it brighten instead of darken.