$basetexture2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
Line 1: Line 1:
#REDIRECT [[$basetexture]]
==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: <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.
 
=====$texture2=====
"$basetexture" "Path/TextureA"
"$texture2" "Path/TextureB"
* Used for the [[WorldTwoTextureBlend]] and [[UnlitTwoTexture]] shaders.
 
 
 
==See Also==
* Tutorial [[Multiple Skins for a Single Model]]


[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]
[[Category:VMT Reflections]]
[[Category:VMT Multiple Textures]]

Revision as of 13:56, 11 November 2007

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