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

GlobalLitSimple

From Valve Developer Community
Jump to navigation Jump to search

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

$basetexture <texture>
Defines an diffuse texture.
$decal <boolean>
Use this material as a decal.
$detail <texture>
Detail texturing.
$surfaceprop <string>
Links the surface to a set of physical properties.

Transparency

$alpha <float>
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!
$alphatest <boolean>
Specifies a mask to use to determine binary opacity.
$distancealpha <boolean> (in all games since Source 2007)
Vector-like edge filtering.
$nocull <boolean>
Disables backface culling.
$translucent <boolean>
Specifies that the material should be partially see-through.

Texture Organization

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

Effect

$nofog <boolean>
Prevents fog from overdrawing a material.