Refract: Difference between revisions
Jump to navigation
Jump to search
Note:Will not work when applied to world brushes (including func_detail).
TomEdwards (talk | contribs) (cleanup, new params) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{otherlang2|fr=Refract:fr}} | {{otherlang2|fr=Refract:fr|de=Refract:de}} | ||
[[File:Refract.jpg|thumb|A refracting [[func_brush]].]] | [[File:Refract.jpg|thumb|A refracting [[func_brush]].]] | ||
Revision as of 07:25, 3 December 2009
A refracting func_brush.
The Refract shaders distorts objects behind it. It is similar to Water, but does not reflect and so is not restricted to flat surfaces. Can be used to create distorting glass windows etc.
Syntax
Refract
{
$normalmap ...
$dudvmap ...
$refracttint "[1 1 1]"
$refractamount .2
}
$normalmap <string>$dudvmap <string>- The pattern of refraction is defined by a bump map (DX9+) or DUDV map (DX8-). May be animated.
$refracttint <color>$refracttinttexture <string>- Tints the colour of the refraction either uniformly or per-texel.
$refractamount <float>$bluramount <float>- Strength of the effect. Use low values.
$forcerefract
Confirm:Override for users running with low detail settings?$vertexcolormodulate- Todo: See $vertexcolor.