$basetexture: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minor formatting changes)
mNo edit summary
Line 1: Line 1:
{{lang|$basetexture}}[[Category:Glossary]][[Category:List of Shader Parameters|B]]__NOTOC__
{{lang|$basetexture}}__NOTOC__
{{Shaderparam|$basetexture}} It defines an [[albedo]] 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.
{{Shaderparam|$basetexture}} It defines an [[albedo]] 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 ==
Line 30: Line 30:
* {{ent|$phong}} (diffuse reflection)
* {{ent|$phong}} (diffuse reflection)
* {{ent|$selfillum}}
* {{ent|$selfillum}}
[[Category:List of Shader Parameters|B]]

Revision as of 00:33, 9 April 2023

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