$alpha: Difference between revisions
Jump to navigation
Jump to search
Bug:Not available in VertexLitGeneric. [todo tested in ?]
SirYodaJedi (talk | contribs) mNo edit summary |
m (Multipage removal) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar|title=$alpha}} | ||
{{stub}} | |||
'''<code style="color:white">$alpha</code>''' is a [[material]] [[shader]] parameter. It scales the [[opacity]] of an entire material by the given value. 1 is entirely opaque, 0 is invisible. | '''<code style="color:white">$alpha</code>''' is a [[material]] [[shader]] parameter. It scales the [[opacity]] of an entire material by the given value. 1 is entirely opaque, 0 is invisible. | ||
Line 16: | Line 18: | ||
*<code>[[$distancealpha]]</code> | *<code>[[$distancealpha]]</code> | ||
*<code>[[$vertexalpha]]</code> | *<code>[[$vertexalpha]]</code> | ||
[[Category:Shader parameters|alpha]] |
Revision as of 02:18, 12 July 2024
$alpha
is a material shader parameter. It scales the opacity of an entire material by the given value. 1 is entirely opaque, 0 is invisible.
If any material on a brush has $alpha
, the brush will stop affecting VVIS and become entirely transparent to NPCs from every angle.
This may be used with $translucent
, although using $translucent
here is redundant, as any $alpha
different than 1 will already apply the $translucent
parameter.
This cannot be used with $alphatest
. If used, the material will be invisible.

Syntax
$alpha <normal>