$alpha: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: changed all transparency-related articles' see-also's to link oneanother)
mNo edit summary
Line 1: Line 1:
{{otherlang2
{{lang|$alpha|title=<code>$alpha</code>}}
|fr=$alpha:fr
|de=$alpha:de
}}
Scales the opacity of an entire material by the given value. 1 is entirely opaque, 0 is invisible.
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 <code>$alpha</code>, the brush will stop affecting [[VIS]] and become entirely transparent to NPCs from every angle.
If ''any'' material on a [[brush]] has <code>$alpha</code>, the brush will stop affecting [[VVIS]] and become entirely transparent to [[NPC]]s from every angle.


This may be used with <code>[[$translucent]]</code>.
This may be used with <code>[[$translucent]]</code>.


== Syntax ==
==Syntax==
 
  $alpha <[[normal]]>
  $alpha <[[normal]]>


== See also ==
==See also==
 
*<code>[[$alphatest]]</code>
*<code>[[$alphatest]]</code>, for binary opacity.
*<code>[[$distancealpha]]</code>
*<code>[[$distancealpha]]</code>, for vector-like alpha edges
*<code>[[$vertexalpha]]</code>
*<code>[[$vertexalpha]]</code>
*<code>[[$translucent]]</code>, for per-pixel opacity.
*<code>[[$translucent]]</code>


[[Category:List of Shader Parameters|A]]
[[Category:List of Shader Parameters]]
[[Category:Glossary]]

Revision as of 14:17, 5 June 2021

English (en)Deutsch (de)Español (es)Français (fr)Русский (ru)Translate (Translate)

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.

Syntax

$alpha <normal>

See also