$alphatest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
Line 1: Line 1:
#REDIRECT [[$translucent#$alphatest]]
{{stub}}
The [[$alphatest]] [[VMT command]] is used ...
 
Sometimes [[$translucent]] leads to rendering errors in the game: eg where modelA is behind modelB, but modelB gets hidden by modelA. If this happens, using the command <code>"$alphatest" 1</code> instead of <code>"$translucent" 1</code> should fix it.
* VMT syntax example:
      // "[[$translucent]]" 1
      "[[$alphatest]]" 1
* This type of shading costs much less than [[$translucent]] shading.
 
[[Category:List of Shader Parameters]]

Revision as of 16:41, 4 April 2008

Stub

This article or section is a stub. You can help by expanding it.

The $alphatest VMT command is used ...

Sometimes $translucent leads to rendering errors in the game: eg where modelA is behind modelB, but modelB gets hidden by modelA. If this happens, using the command "$alphatest" 1 instead of "$translucent" 1 should fix it.

  • VMT syntax example:
      // "$translucent" 1
      "$alphatest" 1
  • This type of shading costs much less than $translucent shading.