$alphatest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 9: Line 9:


[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]
[[Category:VMT Translucency]]

Revision as of 20:19, 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.