$basetexture: Difference between revisions
Jump to navigation
Jump to search
(Added Template:Game link usage; mentioned Mapbase fix) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | [[Category:List of Shader Parameters]] | ||
| | {{lang|$basetexture}} | ||
}} | |||
{{Shaderparam|$basetexture}} It defines an [[albedo]] texture. It is very rare for a [[material]] not to use this parameter and some [[shader|shaders]] will load a default [[texture]] if it stays undefined. | {{Shaderparam|$basetexture}} It defines an [[albedo]] texture. It is very rare for a [[material]] not to use this parameter and some [[shader|shaders]] will load a default [[texture]] if it stays undefined. | ||
==VMT syntax == | ==VMT syntax == | ||
$basetexture <texture without extension, relative to <game>\materials\> | $basetexture <texture without extension, relative to <game>\materials\> | ||
Line 19: | Line 17: | ||
== $basetexture2 == | == $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: | 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: | ||
{{MatParam|$basetexture2|texture}} | {{MatParam|$basetexture2|texture}} | ||
Line 32: | Line 29: | ||
* [[$phong]] (diffuse reflection) | * [[$phong]] (diffuse reflection) | ||
* [[$selfillum]] | * [[$selfillum]] | ||
__NOTOC__ | __NOTOC__ |
Revision as of 00:55, 15 May 2021
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
$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
- $envmapmask (specular mask)
- $envmap (environment map)
- $phong (diffuse reflection)
- $selfillum