This article's documentation is for anything that uses the Source engine. Click here for more information.

GlobalLitSimple: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 3: Line 3:


=== Basics ===
=== Basics ===
{{MatParam|$basetexture|texture|Defines an [[diffuse]] texture.}}
{{MatParamDef|$basetexture|texture|Defines an [[diffuse]] texture.}}
{{MatParam|$decal|bool|Use this material as a decal.}}
{{MatParamDef|$decal|bool|Use this material as a decal.}}
{{MatParam|$detail|texture|Detail texturing.}}
{{MatParamDef|$detail|texture|Detail texturing.}}
{{MatParam|$surfaceprop|string|Links the surface to a set of physical properties.}}
{{MatParamDef|$surfaceprop|string|Links the surface to a set of physical properties.}}


=== Transparency ===
=== Transparency ===
{{MatParam|$alpha|float|Scales the opacity of an entire material.
{{MatParamDef|$alpha|float|Scales the opacity of an entire material.
{{modernImportant|Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}
{{modernImportant|Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!}}}}
{{MatParam|$alphatest|bool|Specifies a mask to use to determine binary opacity.}}
{{MatParamDef|$alphatest|bool|Specifies a mask to use to determine binary opacity.}}
{{MatParam|$distancealpha|since={{src07}}|bool|Vector-like edge filtering.}}
{{MatParamDef|$distancealpha|since={{src07}}|bool|Vector-like edge filtering.}}
{{MatParam|$nocull|bool|Disables backface culling.}}
{{MatParamDef|$nocull|bool|Disables backface culling.}}
{{MatParam|$translucent|bool|Specifies that the material should be partially see-through.}}
{{MatParamDef|$translucent|bool|Specifies that the material should be partially see-through.}}


=== Texture Organization ===
=== Texture Organization ===
{{MatParam|%keywords|bool|Sets a keyword filter that can be filtered in hammer for easier texture finding.}}
{{MatParamDef|%keywords|bool|Sets a keyword filter that can be filtered in hammer for easier texture finding.}}
{{MatParam|%notooltexture|bool|Hides the material from Hammer's texture browser.{{warning|Non-functional in {{hammer++|4.1}}.}} }}
{{MatParamDef|%notooltexture|bool|Hides the material from Hammer's texture browser.{{warning|Non-functional in {{hammer++|4.1}}.}} }}
{{MatParam|%tooltexture|texture|Used to blend texture previews in [[Hammer]].}}
{{MatParamDef|%tooltexture|texture|Used to blend texture previews in [[Hammer]].}}


=== Effect ===
=== Effect ===
{{MatParam|$nofog|bool|Prevents fog from overdrawing a material.}}
{{MatParamDef|$nofog|bool|Prevents fog from overdrawing a material.}}

Latest revision as of 12:07, 23 August 2025

GlobalLitSimple is a Pixel shader available in all Source Source games since Dota 2 Dota 2.

Todo: More documentation, and which shaders? Also it's only present in Dota 2 pre-Reborn/Source 1, used in both brush and models and alot of Dota 2 textures are using them. Confirm which parameters work and which one does not.

Basics

Defines an diffuse texture.
Use this material as a decal.
Detail texturing.
Links the surface to a set of physical properties.

Transparency

Scales the opacity of an entire material.
Icon-Important.pngImportant:Can result in alpha sorting issues if brush is flagged as detail or tied to an entity!
Specifies a mask to use to determine binary opacity.
$distancealpha <boolean> (in all games since Source 2007)
Vector-like edge filtering.
Disables backface culling.
Specifies that the material should be partially see-through.

Texture Organization

Sets a keyword filter that can be filtered in hammer for easier texture finding.
Hides the material from Hammer's texture browser.
Warning.pngWarning:Non-functional in Hammer++ Hammer++.
Used to blend texture previews in Hammer.

Effect

Prevents fog from overdrawing a material.