WorldVertexTransition: Difference between revisions
Jump to navigation
Jump to search
Note:If a material with this shader is used on a non-displacement surface, the Source engine will generate a warning, saying that support for this is going away soon. However, the warning incorrectly calls the shader "WorldTwoTextureBlend". It should also be noted that this warning has been there for a couple of years - see Valve Time.
(Expanded note, hopefully clearing up some confusion.) |
(→Basic VMT Syntax: added real example from EP2) |
||
Line 7: | Line 7: | ||
===Basic VMT Syntax=== | ===Basic VMT Syntax=== | ||
(from <code>ep2/materials/nature/blendgrassdirt01.vmt</code>) | |||
WorldVertexTransition | |||
"WorldVertexTransition" | |||
{ | |||
"[[$basetexture]]" "nature/forest_grass_01" | |||
"[[$basetexture2]]" "nature/forest_dirt_02" | |||
"[[$surfaceprop]]" "dirt" | |||
"[[$blendmodulatetexture]]" "nature/blendtexture01" | |||
"[[%detailtype]]" "forest_floor_01" | |||
} | |||
===Additional Parameters=== | ===Additional Parameters=== |
Revision as of 19:05, 3 April 2008
- Used to blend materials on Displacement surfaces (terrain).
- The percentage blend of each of the two textures is defined by alpha painting in Hammer.
- Two basetextures are vertex lit.
Basic VMT Syntax
(from ep2/materials/nature/blendgrassdirt01.vmt
)
"WorldVertexTransition" { "$basetexture" "nature/forest_grass_01" "$basetexture2" "nature/forest_dirt_02" "$surfaceprop" "dirt" "$blendmodulatetexture" "nature/blendtexture01" "[[%detailtype]]" "forest_floor_01" }
Additional Parameters
- Use $basetexture2 and $bumpmap2 to define the second material.
