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

LightmappedGeneric: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(lightmappedgeneric models aren't a thing, because of vertex formats)
Line 2: Line 2:
{{this is a|s0|name=LightmappedGeneric}} It is the shader most commonly used to render [[lightmap]]ped [[brush]]es and [[displacement]]s.  
{{this is a|s0|name=LightmappedGeneric}} It is the shader most commonly used to render [[lightmap]]ped [[brush]]es and [[displacement]]s.  


Only some games like {{tf2}} support using this shader on models. {{todo|Which other games support it?}}
Models cannot use this shader; [[$lightmap|lightmapped models]] use the {{ent|VertexLitGeneric}} shader.


== Supported Parameters ==
== Supported Parameters ==

Revision as of 16:51, 15 February 2024

English (en)Français (fr)Русский (ru)Translate (Translate)

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

Models cannot use this shader; lightmapped models use the VertexLitGeneric shader.

Supported Parameters

Basics

$basetexture $decal $detail $surfaceprop

Adjustment

$basetexturetransform $color $decalscale $detailscale $detailblendfactor $detailblendmode $modelmaterial $pointsamplemagfilter $seamless_scale

Transparency

$alpha $alphatest $distancealpha $nocull $translucent

Lighting

$bumpmap $lightwarptexture $selfillum $ssbump

Reflection

$envmap $phong

Texture Organization

%keywords %notooltexture %tooltexture

Effect

$nofog

Caveats

Mapbase

LightmappedGeneric materials in Mapbase should have the shader SDK_LightmappedGeneric.


See also