$basetexture

From Valve Developer Community
Revision as of 14:29, 6 February 2022 by Popcorn (talk | contribs) (Used colorful game links. Added anchors for shader parameters so redirects can directly target the right spot of this page.)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)Translate (Translate)

Template:Shaderparam It defines an albedo texture. It is very rare for a material not to use this parameter and some shaders will load a default texture if it stays undefined.

VMT syntax

$basetexture	<texture without extension, relative to <game>\materials\>
LightmappedGeneric
{
	$basetexture	brick\brickwall031b
}

Additional parameters

$basetexturetransform $frame

$basetexture2

Some shaders (most notably WorldVertexTransition) allow the use of two albedos. The second texture is handled by a mirrored set of commands with '2' in their name: $basetexture2 $basetexturetransform2 $frame2

There are further '2' commands applying to various shader effects, which are each documented in their respective articles.

See Also