$alphatest

From Valve Developer Community
Revision as of 20:38, 4 April 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

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.