Difference between revisions of "$basetexture2"

From Valve Developer Community
Jump to: navigation, search
m ($texture2: Actually that sound like bs to me. (Checked against all HL2 materials.))
m (made redir)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Usage==
+
#redirect [[$basetexture]]
 
 
* '''A second basetexture is used in combination with [[$basetexture]] for blending two materials on a brush displacement surface. '''
 
* Used by the [[WorldVertexTransition]] shader to blend materials on [[Displacement]] surfaces (terrain).
 
* The percentage blend of each of the two basetextures is defined by alpha painting in Hammer.
 
* 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"
 
 
 
==Available values==
 
 
 
===$basetexture2===
 
"$basetexture" "Path/TextureA"
 
"$basetexture2" "Path/TextureB"
 
* where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder.
 
* where '''<code>TextureA</code>''' is the 1st basetexture filename; ie <code>TextureA.vtf</code>.
 
* where '''<code>TextureB</code>''' is the 2nd basetexture filename; ie <code>TextureB.vtf</code>.
 
 
 
 
====$basetexturetransform2====
 
"$basetexturetransform2" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>"
 
* Used with [[$basetexture2]] by the [[WorldVertexTransition]] 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" 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.
 
 
 
 
 
===$texture2===
 
"$basetexture" "Path/TextureA"
 
"$texture2" "Path/TextureB"
 
* Used for the [[UnlitTwoTexture]] shader.
 
 
 
==See Also==
 
* Tutorial [[Multiple Skins for a Single Model]]
 
 
 
[[Category:List of Shader Parameters]]
 
[[Category:VMT Multiple Textures]]
 

Latest revision as of 12:22, 12 July 2008

Redirect to: