$basetexture: Difference between revisions
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.''' | |||
=== Syntax === | |||
"$basetexture" "Path/Texture" | |||
* <code>Path</code> is relative to <code>game_directory/materials</code> folder. | |||
* <code>Texture</code> is the filename, eg <code>texture.vtf</code>. | |||
* Notice the <code>.vtf</code> file extension is not used in VMT texture references. | |||
=== Additional Parameters === | |||
=====$basetexture2===== | |||
"$basetexture2" "Path/Texture2" | |||
* Used for the [[WorldVertexTransition]] shader. | |||
=====$texture2===== | |||
"$texture2" "Path/Texture2" | |||
* Used for the [[WorldTwoTextureBlend]] and [[UnlitTwoTexture]] shaders. | |||
Revision as of 16:05, 8 November 2007
The $basetexture shader parameter specifies the VTF texture to use for the basic local-color (diffusemap) of the material surface.
Syntax
"$basetexture" "Path/Texture"
Path
is relative togame_directory/materials
folder.Texture
is the filename, egtexture.vtf
.- Notice the
.vtf
file extension is not used in VMT texture references.
Additional Parameters
$basetexture2
"$basetexture2" "Path/Texture2"
- Used for the WorldVertexTransition shader.
$texture2
"$texture2" "Path/Texture2"
- Used for the WorldTwoTextureBlend and UnlitTwoTexture shaders.