$basetexture: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
SirYodaJedi (talk | contribs) m (Diffuse, not albedo) |
||
Line 1: | Line 1: | ||
{{langsp}}__NOTOC__ | {{langsp}}__NOTOC__ | ||
{{Shaderparam|$basetexture}} It defines an [[ | {{Shaderparam|$basetexture}} It defines an [[diffuse]] texture. It is very rare for a [[material]] not to use this parameter and some [[shader]]s will load a default [[texture]] if it stays undefined. | ||
== VMT Syntax == | == VMT Syntax == |
Revision as of 21:04, 17 August 2023
Template:Shaderparam It defines an diffuse 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:
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