$basetexture
From Valve Developer Community
| Table of contents |
[edit]
Usage
- $basetexture specifies the VTF texture to use for the basic 'skin' or diffusemap of the material surface.
- If the basetexture.vtf has an alpha channel (ie it's 32bit rather than 24bit) this can be used as luminositymap ($selfillum).
[edit]
VMT syntax and default values
LightmappedGeneric { $basetexture "path/to/vtf" $basetexturetransform "center .5 .5 scale 1 1 rotate 0 translate 0 0" }
[edit]
Available values
[edit]
$basetexture
"$basetexture" "Path/TextureA"
- where
Pathis the filepath relative togame_directory/materialsfolder. - where
TextureAis the filename; ieTextureA.vtf. - Notice the
.vtffile extension is not used in VMT texture references.
[edit]
$basetexturetransform
"$basetexturetransform" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>"
- Transforms the image from the base texture before use in the material.
- The default position is:
"center .5 .5 scale 1 1 rotate 0 translate 0 0".
[edit]
$basetextureoffset
$basetextureoffset <>
[edit]
$basetexturescale
$basetexturescale <>
[edit]

