$basetexture: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''The $basetexture shader parameter specifies the [[VTF]] texture to use for the basic 'skin' or diffusemap of the material surface.''' | '''The $basetexture shader parameter specifies the [[VTF]] texture to use for the basic 'skin' or diffusemap of the material surface.''' | ||
[[$bumpmap]] | |||
[[$parallaxmap]] | |||
[[$detail]] | |||
=== Basic VMT Syntax === | === Basic VMT Syntax === | ||
Line 8: | Line 12: | ||
=== Additional Parameters === | === Additional Parameters === | ||
=====$basetexturetransform===== | |||
"$basetexturetransform" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>" | |||
* The default position is: <code>"center .5 .5 scale 1 1 rotate 0 translate 0 0"</code>. | |||
* "center" and "translate" are in UV 0.1 coordinates, "rotate" is in angles. | |||
* Note: You must include all variables. | |||
=====$basetexture2===== | =====$basetexture2===== | ||
"$basetexture" "Path/TextureA" | "$basetexture" "Path/TextureA" | ||
"$basetexture2" "Path/TextureB" | "$basetexture2" "Path/TextureB" | ||
"$basetexturetransform2" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>" | |||
* Used for the [[WorldVertexTransition]] shader. | * Used for the [[WorldVertexTransition]] shader. | ||
* The "$basetexturetransform2" line is not required; it's included just show that it is available. | |||
=====$texture2===== | =====$texture2===== |
Revision as of 17:02, 8 November 2007
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 togame_directory/materials
folder. - where
TextureA
is the filename; ieTextureA.vtf
. - Notice the
.vtf
file extension is not used in VMT texture references.
Additional Parameters
$basetexturetransform
"$basetexturetransform" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>"
- The default position is:
"center .5 .5 scale 1 1 rotate 0 translate 0 0"
. - "center" and "translate" are in UV 0.1 coordinates, "rotate" is in angles.
- Note: You must include all variables.
$basetexture2
"$basetexture" "Path/TextureA" "$basetexture2" "Path/TextureB" "$basetexturetransform2" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>"
- Used for the WorldVertexTransition shader.
- The "$basetexturetransform2" line is not required; it's included just show that it is available.
$texture2
"$basetexture" "Path/TextureA" "$texture2" "Path/TextureB"
- Used for the WorldTwoTextureBlend and UnlitTwoTexture shaders.
See Also
- Tutorial Multiple Skins for a Single Model