Template:I Shadow: Difference between revisions

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

Latest revision as of 22:45, 28 June 2025

Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
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.