$alphatest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (made redir)
Line 1: Line 1:
[[$translucent]] can sometimes lead to rendering errors, such as a surface behind an object being drawn in front of it or two nearby surfaces "fighting" to draw when viewed from a distance. If this happens you may want to consider using '''<code>$alphatest</code>''' instead of <code>$translucent</code>.
#redirect [[$translucent#$alphatest]]
 
<code>$alphatest</code> is also far cheaper than <code>$translucent</code>, but reduces the bit depth of the transparency - i.e. creates jagged edges and sacrifices fine quality.
 
== VMT syntax example ==
 
      // [[$translucent]] 1
      [[$alphatest]] 1
 
[[Category:List of Shader Parameters]]
[[Category:VMT Transparency]]

Revision as of 04:16, 13 July 2008