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
(→‎Supported Parameters: Add paint parameters)
Line 41: Line 41:
=== Reflection ===
=== Reflection ===
{{MatParam|$envmap|cubemap|Specular reflections.}}
{{MatParam|$envmap|cubemap|Specular reflections.}}
{{MatParam|$phong|since={{csgo}}|also={{GMOD}}|bool|Diffuse reflections.
{{MatParam|$phong|since={{csgo}}|also={{GMOD}}{{mapbase}}|bool|Diffuse reflections.
{{note|Phong is reflected only from [[env_cascade_light]].}}
{{note|Phong is reflected only from [[env_cascade_light]].}}
:{{todo|Are there reflections from any other light sources?.}}  
:{{todo|Are there reflections from any other light sources?.}}  
{{warning|Standard phong color is always white and don't depend on the color of [[light_environment]] or [[env_cascade_light]].}}
{{warning|Standard phong color is always white and don't depend on the color of [[light_environment]] or [[env_cascade_light]].}}
{{bug|Normal map does not affect phong reflections if there is empty $envmap on the material, or if you haven't assigned any brush face on [[env_cubemap]] entity.}}}}
{{bug|Normal map does not affect phong reflections if there is empty $envmap on the material, or if you haven't assigned any brush face on [[env_cubemap]] entity.}}}}
{{MatParam|$phong_exp|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}
{{MatParam|$phong_exp2|only={{lw}}|float|{{confirm|Is this for LW's Blinn–Phong reflections?}}}}


==={{portal2}}Paint===
==={{portal2}}Paint===

Revision as of 22:58, 7 April 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 $phong_exp $phong_exp2

Portal 2Paint

$paintsplatnormalmap $paintsplatbubblelayout $paintsplatbubble $paintenvmap


Texture Organization

%keywords %notooltexture %tooltexture

Effect

$nofog

Caveats

Mapbase

LightmappedGeneric materials in Mapbase should have the shader SDK_LightmappedGeneric.


See also