Template:I Shadow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (I forgot to actually add the functionality.)
mNo edit summary
Line 1: Line 1:
{{lang|Template:I Shadow}}
{{lang|Template:I Shadow}}[[Category:Input Templates|Shadow]]{{seealso|{{tl|KV Shadow}}}}
{{tip|Use <code>{{!}}prep2{{=}}1</code> when calling this template to hide the inputs added in ''Portal 2''.}}
{{tip|Use <code>{{!}}prep2{{=}}1</code> when calling this template to hide the inputs added in ''Portal 2''.}}
<onlyinclude>{{ScrollBox|title=Shadow|
<onlyinclude>{{minititle|Shadow}}
{{IO|DisableShadow|Turn [[Lighting#Dynamic_shadows|dynamic shadows]] off for this entity.}}
{{IO|DisableShadow|Turn [[Lighting#Dynamic_shadows|dynamic shadows]] off for this entity. Identical to applying &thinsp;{{ent|EF_NOSHADOW}}.}}
{{IO|EnableShadow|Turn [[Lighting#Dynamic_shadows|dynamic shadows]] on for this entity.}}
{{IO|EnableShadow|Turn dynamic shadows on for this entity.}}
{{#if: {{{prep2|}}} | |{{IO|DisableReceivingFlashlight|This object will not receive light or shadows from [[env_projectedtexture|projected textures]].|since=P2}}
{{#if: {{{prep2|}}} | |{{IO|DisableReceivingFlashlight|This object will not receive light or shadows from [[env_projectedtexture|projected textures]].|since=P2}}
{{IO|EnableReceivingFlashlight|This object may receive light or shadows from [[env_projectedtexture|projected textures]].|since=P2}} }}
{{IO|EnableReceivingFlashlight|This object may receive light or shadows from projected textures.|since=P2}} }}</onlyinclude>
}}</onlyinclude>
[[Category:Input Templates|Shadow]]

Revision as of 18:05, 24 May 2022

See also:  {{KV Shadow}}
Tip.pngTip:Use |prep2=1 when calling this template to hide the inputs added in Portal 2.

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.