Difference between revisions of "LightmappedGeneric"

From Valve Developer Community
Jump to: navigation, search
(Changed to use Shader and ent templates, added game add information)
(added the new csgo vmt param page to here, since it's compatible with this shader)
Line 26: Line 26:
 
;{{ent|$alpha}}
 
;{{ent|$alpha}}
 
: Expensive and cheap transparency.
 
: Expensive and cheap transparency.
;{{ent|$phong}} {{CSGO add}}
+
;{{ent|$phong}} {{CSGO only}}
: Diffuse reflections. {{csgo}} only.
+
: Diffuse reflections.
 +
;{{ent|$PointSampleMagFilter}} {{CSGO only}}
 +
: Disables texture filtering.
  
 
== See also ==
 
== See also ==

Revision as of 15:24, 9 August 2019

LightmappedGeneric is a material shader available in all Source games. It is the shader most commonly used to render brushes, displacements and lightmapped surfaces.

Supported Parameters

$bumpmap
Bumpmapping.
$ssbump (in all games since <Half-Life 2: Episode Two><Half-Life 2: Episode Two>)
Self-shadowing bumpmapping.
$color
Color tinting.
$decal
Use this material as a decal.
$detail
Detail texturing.
$distancealpha (in all games since <Half-Life 2: Episode Two><Half-Life 2: Episode Two>)
Vector-like edge filtering.
$envmap
Specular reflections.
$lightwarptexture (in all games since <Half-Life 2: Episode One><Half-Life 2: Episode One>)
Per-texel color modification via a warp texture.
$seamless_scale (in all games since <Half-Life 2: Episode Two><Half-Life 2: Episode Two>)
Mitigation for displacement texture stretching.
$selfillum
Self-illumination.
$translucent
$alpha
Expensive and cheap transparency.
$phong (only in <Counter-Strike: Global Offensive>)
Diffuse reflections.
$PointSampleMagFilter (only in <Counter-Strike: Global Offensive>)
Disables texture filtering.

See also