$basetexture: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
'''The $basetexture shader parameter specifies the [[VTF]] texture to use for the basic local-color (diffusemap) of the material surface.'''
'''The $basetexture shader parameter specifies the [[VTF]] texture to use for the basic diffusemap (local colour) of the material surface.'''


=== Syntax ===
=== Syntax ===

Revision as of 16:06, 8 November 2007

The $basetexture shader parameter specifies the VTF texture to use for the basic diffusemap (local colour) of the material surface.

Syntax

"$basetexture" "Path/Texture" 
  • Path is relative to game_directory/materials folder.
  • Texture is the filename, eg texture.vtf.
  • Notice the .vtf file extension is not used in VMT texture references.

Additional Parameters

$basetexture2
"$basetexture2" "Path/Texture2" 
$texture2
"$texture2" "Path/Texture2"