$basetexture2: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 24: | Line 24: | ||
"$basetexturetransform2" "center <float> <float> scale <float> <float> rotate <float> translate <float> <float>" | "$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). | * Used with [[$basetexture2]] by the [[WorldVertexTransition]] shader to blend materials on [[Displacement]] surfaces (terrain). | ||
{{VMT_UVtransform}} | |||
{{ | |||
=== $bumpbasetexture2withbumpmap === | === $bumpbasetexture2withbumpmap === |
Revision as of 02:34, 7 April 2008
Usage
- 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
"WorldVertexTransition" { "$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
Path
is the filepath relative togame_directory/materials
folder. - where
TextureA
is the 1st basetexture filename; ieTextureA.vtf
. - where
TextureB
is the 2nd basetexture filename; ieTextureB.vtf
.
$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 center .5 .5 scale 1 1 rotate 0 translate 0 0.
- center defines the point of rotation. Only useful if rotate is being used.
- scale fits the texture into the material the given number of times. 2 1 is a 50% scale in the horizontal X axis while the vertical Y axis is still at original scale.
- rotate rotates the texture counter-clockwise in degrees. Accepts any number, including negatives.
- translate shifts the texture by the given numbers. .5 will shift it half-way. 1 will shift it once completely over, which is the same as not moving it at all.
Note:All values must be included!
Bug:Scaling the texture may cause odd issues where the Texture Lock tool in Hammer will not actually lock the texture in place. [todo tested in ?]
Bug:Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin. [todo tested in ?]
$bumpbasetexture2withbumpmap
$bumpbasetexture2withbumpmap <>
- Todo: specify bumpmap to apply?
See also
- See also $texture2
- Tutorial Multiple Skins for a Single Model