$basetexture2

From Valve Developer Community
Revision as of 13:56, 11 November 2007 by Beeswax (talk | contribs)
Jump to navigation Jump to search

Usage

  • A second basetexture is used in combination with $basetexture for blending two materials on a brush displacement surface.
  • See Displacement for further information.

VMT syntax and default values

"$basetexture" "Path/TextureA" 
"$basetexture2" "Path/TextureB" 
  "$basetexturetransform2" "center .5 .5 scale 1 1 rotate 0 translate 0 0"
$basetexture2
"$basetexture" "Path/TextureA" 
"$basetexture2" "Path/TextureB" 
  • Used by the WorldTwoTextureBlend shader to blend materials on Displacement surfaces (terrain).
  • The percentage blend of each of the two basetextures is defined by alpha painting in Hammer.
$basetexturetransform2
"$basetexture2" "Path/TextureB" 
"$basetexturetransform2" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>"
  • Used with $basetexture2 by the WorldTwoTextureBlend shader to blend materials on Displacement surfaces (terrain).
  • 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.
$texture2
"$basetexture" "Path/TextureA" 
"$texture2" "Path/TextureB" 


See Also