$basetexture2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Changed redirect target from $basetexture to $basetexture#$basetexture2)
Tag: Redirect target changed
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Usage==
#redirect [[$basetexture#$basetexture2]]
 
* '''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:VMT Multiple Textures]]

Latest revision as of 00:00, 25 June 2021