Template:KV Shadow: Difference between revisions
Jump to navigation
Jump to search
Tip:add
1416006136 (talk | contribs) m (Added Template:Lang) |
Kestrelguy (talk | contribs) (added choice between pre- and post-Portal 2 versions. the latter is still the default.) |
||
Line 1: | Line 1: | ||
<noinclude>{{lang|Template:KV Shadow}}</noinclude> | <noinclude>{{lang|Template:KV Shadow}} | ||
{{ScrollBox|title=Shadow| | {{tip|add <code>{{!}}prep2{{=}}1</code> to hide the KVs added in ''Portal 2''.}} | ||
{{KV|Disable Shadows|intn=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]].}} | </noinclude>{{ScrollBox|title=Shadow| | ||
{{KV|Disable ShadowDepth|intn=disableshadowdepth|boolean|Used to disable rendering into shadow depth (for | {{KV|Disable Shadows|intn=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 [[env_projectedtexture|shadow mapping]].}} | ||
{{KV|Projected Texture Cache|intn=shadowdepthnocache|choices|Used to hint | {{#if: {{{prep2|}}} | | {{KV|Disable ShadowDepth|intn=disableshadowdepth|boolean|Used to disable rendering into shadow depth (for projected textures) for this entity.|since=P2}} | ||
{{KV|Projected Texture Cache|intn=shadowdepthnocache|choices|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.|since=P2}} | |||
:* 0 : Default | :* 0 : Default | ||
:* 1 : No cache - render every frame | :* 1 : No cache - render every frame | ||
:* 2 : Cache it - render only once | :* 2 : Cache it - render only once | ||
{{KV|Disable flashlight|intn=disableflashlight|boolean|Used to disable [[env_projectedtexture|projected texture]] lighting and shadows on this entity.|since=P2}} | {{KV|Disable flashlight|intn=disableflashlight|boolean|Used to disable [[env_projectedtexture|projected texture]] lighting and shadows on this entity.|since=P2}} | ||
}}<noinclude> | }}}}<noinclude> | ||
[[Category:Keyvalue Templates|Shadow]] | [[Category:Keyvalue Templates|Shadow]] | ||
</noinclude> | </noinclude> |
Revision as of 09:13, 30 April 2022

|prep2=1
to hide the KVs added in Portal 2.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
)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Projected Texture Cache (shadowdepthnocache) <choices> (in all games since
)
- 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
)
- Used to disable projected texture lighting and shadows on this entity.