$basetexture: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
"$selfillum" 0 | "$selfillum" 0 | ||
"$selfillumtint" ? | "$selfillumtint" ? | ||
==Available values== | ==Available values== | ||
===$basetexture=== | |||
"$basetexture" "Path/TextureA" | "$basetexture" "Path/TextureA" | ||
* where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder. | * where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder. | ||
Line 18: | Line 17: | ||
* Notice the <code>.vtf</code> file extension is not used in VMT texture references. | * Notice the <code>.vtf</code> file extension is not used in VMT texture references. | ||
===$basetexturetransform=== | |||
"$basetexturetransform" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>" | "$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>. | * The default position is: <code>"center .5 .5 scale 1 1 rotate 0 translate 0 0"</code>. | ||
Line 27: | Line 26: | ||
* Note: You must include all variables. | * Note: You must include all variables. | ||
===$selfillum=== | |||
"$selfillum" 1 | "$selfillum" 1 | ||
* Uses [[$basetexture]]'s alpha channel to set minumum clamps on the lighting. | * Uses [[$basetexture]]'s alpha channel to set minumum clamps on the lighting. | ||
====$selfillumtint==== | |||
"$selfillumtint" ? | "$selfillumtint" ? | ||
* Used to adjust the color of [[$selfillum]]. | * Used to adjust the color of [[$selfillum]]. | ||
==See Also== | ==See Also== | ||
* Tutorial [[Multiple Skins for a Single Model]] | * Tutorial [[Multiple Skins for a Single Model]] | ||
* [[$basetexture2]] | |||
Revision as of 14:09, 11 November 2007
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).
VMT syntax and default values
"$basetexture" "path/to/vtf" "$basetexturetransform" "center .5 .5 scale 1 1 rotate 0 translate 0 0" "$selfillum" 0 "$selfillumtint" ?
Available values
$basetexture
"$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.
$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" values are UV 0.1 coordinates.
- "scale" values are UV factors.
- "translate" values are UV 0.1 coordinates.
- "rotate" values are 0-360 degree UV angles.
- Note: You must include all variables.
$selfillum
"$selfillum" 1
- Uses $basetexture's alpha channel to set minumum clamps on the lighting.
$selfillumtint
"$selfillumtint" ?
- Used to adjust the color of $selfillum.