Refract: Difference between revisions
Jump to navigation
Jump to search
Note:The shader will not work when applied to world geometry. Make any brushes you want it applied to are attached to entities (excluding func_detail).
Tip:
TomEdwards (talk | contribs) (translated) |
DeathByNukes (talk | contribs) (→Example: tip) |
||
Line 15: | Line 15: | ||
} | } | ||
{{tip|<code>[[$additive]]</code> | {{tip|<code>[[$additive]]</code> does not work but values greater than one for <code>[[$refracttint]]</code> can make it brighten instead of darken.}} | ||
== See also == | == See also == |
Revision as of 14:06, 2 February 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 }

$additive
does not work but values greater than one for $refracttint
can make it brighten instead of darken.