$basetexture: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (→$selfillum) | mNo edit summary | ||
| Line 26: | Line 26: | ||
| * "rotate" values are 0-360 degree UV angles.   | * "rotate" values are 0-360 degree UV angles.   | ||
| * Note: You must include all variables. | * Note: You must include all variables. | ||
| ==See Also== | ==See Also== | ||
| Line 36: | Line 34: | ||
| [[Category:List of Shader Parameters]] | [[Category:List of Shader Parameters]] | ||
| [[Category:VMT Texture Reference]] | [[Category:VMT Texture Reference]] | ||
Revision as of 20:24, 4 April 2008
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 Pathis the filepath relative togame_directory/materialsfolder.
- where TextureAis the filename; ieTextureA.vtf.
- Notice the .vtffile extension is not used in VMT texture references.
$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".
- "center" values are UV 0.1 coordinates.
- "scale" values are UV divisors. (Values of 2will make the transformed texture half as big.)
- "translate" values are UV 0.1 coordinates.
- "rotate" values are 0-360 degree UV angles.
- Note: You must include all variables.