$basetexture

From Valve Developer Community
Revision as of 16:21, 8 November 2007 by Beeswax (talk | contribs)
Jump to navigation Jump to search

The $basetexture shader parameter specifies the VTF texture to use for the basic 'skin' or diffusemap of the material surface.

Basic VMT Syntax

"$basetexture" "Path/TextureA" 
  • where Path is the filepath relative to game_directory/materials folder.
  • where TextureA is the filename; ie TextureA.vtf.
  • Notice the .vtf file extension is not used in VMT texture references.

Additional Parameters

$basetexture2
"$basetexture" "Path/TextureA" 
"$basetexture2" "Path/TextureB" 
$texture2
"$basetexture" "Path/TextureA" 
"$texture2" "Path/TextureB" 


See Also