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

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.