Shadow groups
From Blood Wiki
(Difference between revisions)
(Created page with "{{unfinished}} Shadows group is a combination of '''_cs''' (cast shadows) and '''_rs''' (receive shadows) entity keys used to control how entity cast lightmap/vertex light...") |
m |
||
Line 13: | Line 13: | ||
*[[Lightmap]] | *[[Lightmap]] | ||
*[[Vertex lighting]] | *[[Vertex lighting]] | ||
+ | |||
+ | [[Category:Glossary]] |
Revision as of 15:39, 25 September 2012
Shadows group is a combination of _cs (cast shadows) and _rs (receive shadows) entity keys used to control how entity cast lightmap/vertex light shadows. A numbers should be used for shadows groups (1, 2, 3, 100, 1000 etc.), negative values are allowed.
Shadows groups are applied during lightmapping of entity using this rules:
- Receive shadows is 1: only receive shadows from objects with cast shadows 1 (the worldspawn cast shadows).
- Receive shadows is > 1: only receive shadows from objects with same abs(cast shadows) and worldspawn.
- Receive shadows is < 1: only receive shadows from objects with same abs(cast shadows) and no worldspawn.
By default worldspawn and func_group have cast shadows and receive shadows 1. All other entities have cast shadows 0 and receive shadows 1.