$basetexture: Difference between revisions
Jump to navigation
Jump to search
Deprecated (talk | contribs) (Changed to use Shaderparam and MatParam templates) |
m (Added $frame2) |
||
Line 25: | Line 25: | ||
{{MatParam|$basetexture2|texture}} | {{MatParam|$basetexture2|texture}} | ||
{{MatParam|$basetexturetransform2|matrix|{{bug|<code>$basetexturetransform2</code> doesn't seem to work in Source 2007 [http://forums.steampowered.com/forums/showpost.php?p{{=}}7669785&postcount{{=}}4 source].}}}} | {{MatParam|$basetexturetransform2|matrix|{{bug|<code>$basetexturetransform2</code> doesn't seem to work in Source 2007 [http://forums.steampowered.com/forums/showpost.php?p{{=}}7669785&postcount{{=}}4 source].}}}} | ||
{{MatParam|$basetextureoffset2|normal|{{ | {{MatParam|$basetextureoffset2|normal|{{confirm|Does this parameter and the one below it even exist?}}}} | ||
{{MatParam|$basetexturescale2|normal}} | {{MatParam|$basetexturescale2|normal}} | ||
{{MatParam|$frame2|int}} | |||
There are further '2' commands applying to various shader effects, which are each documented in their respective articles. | There are further '2' commands applying to various shader effects, which are each documented in their respective articles. |
Revision as of 09:03, 26 July 2019
Template:Otherlang2 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
$basetextureoffset
$basetexturescale
$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
$basetextureoffset2
$basetexturescale2
$frame2
There are further '2' commands applying to various shader effects, which are each documented in their respective articles.
See Also
- $envmapmask (specular mask)
- $envmap (environment map)
- $phong (diffuse reflection)
- $selfillum