Template:KV Source 2 Light Shadows: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Create Source 2 Light Shadows KeyValue Template for the Next-Gen Light Types from lights2.fgd)
 
No edit summary
Line 1: Line 1:
{{ScrollBox|title=Source 2 Light Shadows|
{{ScrollBox|title=Source 2 Light Shadows|


{{KV|Cast Shadows (castshadows)|choices| Whether this light casts shadow .}}
{{KV|Cast Shadows|intn=castshadows|choices| Whether this light casts shadow .}}
:*0: No
:*0: No
:*1: Yes
:*1: Yes
:*0: Baked Only
:*0: Baked Only
{{KV|Shadow Map Resolution (shadowmapsize)|choices|}}
{{KV|Shadow Map Resolution|intn=shadowmapsize|choices|}}
:*0: 4096
:*0: 4096
:*1: 3584
:*1: 3584
Line 15: Line 15:
:*7: 512
:*7: 512
:*8: Default  
:*8: Default  
{{KV|Shadow Priority (shadowpriority)|choices| Priority for the light's shadowmap. Shadowmaps are allocated from highest-to-lowest priority, favoring lights with stationary shadows within each priority. "Low" is below the default priority.}}
{{KV|Shadow Priority|intn=shadowpriority|choices| Priority for the light's shadowmap. Shadowmaps are allocated from highest-to-lowest priority, favoring lights with stationary shadows within each priority. "Low" is below the default priority.}}
:*0: Highest
:*0: Highest
:*1: High
:*1: High
Line 21: Line 21:
:*3: Low
:*3: Low
:*4: Default
:*4: Default
{{KV|Transmit Shadow Casters to Client (pvs_modify_entity)|bool| When this light is visible to a player, add its shadow casters to the player's PVS. .}}   
{{KV|Transmit Shadow Casters to Client|intn=pvs_modify_entity|bool| When this light is visible to a player, add its shadow casters to the player's PVS. .}}   
{{KV|Shadow Fade Out Start Size (shadowfade_size_start)|float| Screen size where the shadows will begin fading out .}}
{{KV|Shadow Fade Out Start Size|intn=shadowfade_size_start|float| Screen size where the shadows will begin fading out .}}
{{KV|Shadow Fade Out End Size (shadowfade_size_end)|float| Screen size where the shadows will be fully faded out .}}}}
{{KV|Shadow Fade Out End Size|intn=shadowfade_size_end|float| Screen size where the shadows will be fully faded out .}}}}


<noinclude>
<noinclude>
[[Category:KeyValue Templates|Source 2 Light Shadows]]
[[Category:Keyvalue Templates|Source 2 Light Shadows]]
</noinclude>
</noinclude>

Revision as of 05:42, 8 February 2025

Source 2 Light Shadows:


Cast Shadows (castshadows) <choices>
Whether this light casts shadow .
  • 0: No
  • 1: Yes
  • 0: Baked Only
Shadow Map Resolution (shadowmapsize) <choices>
  • 0: 4096
  • 1: 3584
  • 2: 3072
  • 3: 2560
  • 4: 2048
  • 5: 1536
  • 6: 1024
  • 7: 512
  • 8: Default
Shadow Priority (shadowpriority) <choices>
Priority for the light's shadowmap. Shadowmaps are allocated from highest-to-lowest priority, favoring lights with stationary shadows within each priority. "Low" is below the default priority.
  • 0: Highest
  • 1: High
  • 2: Medium
  • 3: Low
  • 4: Default
Transmit Shadow Casters to Client (pvs_modify_entity) <boolean>
When this light is visible to a player, add its shadow casters to the player's PVS. .
Shadow Fade Out Start Size (shadowfade_size_start) <float>
Screen size where the shadows will begin fading out .
Shadow Fade Out End Size (shadowfade_size_end) <float>
Screen size where the shadows will be fully faded out .