Difference between revisions of "Template:KV Shadow"

From Valve Developer Community
Jump to: navigation, search
(Added some FGD information)
(Added prop_static behavior to Disable Shadows keyvalue)
 
Line 1: Line 1:
 
{{ScrollBox|title=Shadow|
 
{{ScrollBox|title=Shadow|
{{KV|Disable shadows (disableshadows)|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
+
{{KV|Disable Shadows (disableshadows)|boolean|Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a {{ent|prop_static}}. Does not affect [[shadow mapping]].}}
 
{{KV|Disable ShadowDepth (disableshadowdepth)|boolean|Used to disable rendering into shadow depth (for [[env_projectedtexture|projected textures]]) for this entity.|since=P2}}
 
{{KV|Disable ShadowDepth (disableshadowdepth)|boolean|Used to disable rendering into shadow depth (for [[env_projectedtexture|projected textures]]) for this entity.|since=P2}}
 
{{KV|Projected Texture Cache (shadowdepthnocache)|choices|Used to hint [[env_projectedtexture|projected texture system]] whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.|since=P2}}
 
{{KV|Projected Texture Cache (shadowdepthnocache)|choices|Used to hint [[env_projectedtexture|projected texture system]] whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.|since=P2}}

Latest revision as of 17:17, 13 January 2020

Shadow:

Disable Shadows (disableshadows) <boolean>
Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
Disable ShadowDepth (disableshadowdepth) <boolean> (in all games since [Portal 2])
Used to disable rendering into shadow depth (for projected textures) for this entity.
Projected Texture Cache (shadowdepthnocache) <choices> (in all games since [Portal 2])
Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
  • 0 : Default
  • 1 : No cache - render every frame
  • 2 : Cache it - render only once
Disable flashlight (disableflashlight) <boolean> (in all games since [Portal 2])
Used to disable projected texture lighting and shadows on this entity.