GlobalLitSimple: Difference between revisions
Jump to navigation
Jump to search
(Shaders from original Dota 2, which wasnt documented here before.) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{this is a|pixel shader|name=GlobalLitSimple|since=Dota 2}} | {{this is a|pixel shader|name=GlobalLitSimple|since=Dota 2}} | ||
{{Todo|More documentation, and which shaders? Also it's only present in Dota 2 pre-Reborn/Source 1, and | {{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 [[VTF|textures]] are using them. Confirm which parameters work and which one does not.}} | ||
=== Basics === | === Basics === | ||
{{ | {{MatParamDef|$basetexture|texture|Defines an [[diffuse]] texture.}} | ||
{{ | {{MatParamDef|$decal|bool|Use this material as a decal.}} | ||
{{ | {{MatParamDef|$detail|texture|Detail texturing.}} | ||
{{ | {{MatParamDef|$surfaceprop|string|Links the surface to a set of physical properties.}} | ||
=== Transparency === | === Transparency === | ||
{{ | {{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!}}}} | ||
{{ | {{MatParamDef|$alphatest|bool|Specifies a mask to use to determine binary opacity.}} | ||
{{ | {{MatParamDef|$distancealpha|since={{src07}}|bool|Vector-like edge filtering.}} | ||
{{ | {{MatParamDef|$nocull|bool|Disables backface culling.}} | ||
{{ | {{MatParamDef|$translucent|bool|Specifies that the material should be partially see-through.}} | ||
=== Texture Organization === | === Texture Organization === | ||
{{ | {{MatParamDef|%keywords|bool|Sets a keyword filter that can be filtered in hammer for easier texture finding.}} | ||
{{ | {{MatParamDef|%notooltexture|bool|Hides the material from Hammer's texture browser.{{warning|Non-functional in {{hammer++|4.1}}.}} }} | ||
{{ | {{MatParamDef|%tooltexture|texture|Used to blend texture previews in [[Hammer]].}} | ||
=== Effect === | === Effect === | ||
{{ | {{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 games since
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.
Links the surface to a set of physical properties.
Transparency
Scales the opacity of an entire material.
Important: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.
Vector-like edge filtering.
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:Non-functional in
Hammer++.


Used to blend texture previews in Hammer.