Editing Shadow groups
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{unfinished}} | {{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 shadows. | + | 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 (-127 to 127 etc.), negative values are allowed. |
− | + | ||
− | A numbers should be used for shadows groups | + | |
Shadows groups are applied during lightmapping of entity using this rules: | Shadows groups are applied during lightmapping of entity using this rules: | ||
− | #Receive shadows is 0: | + | #Receive shadows is 0: entity will not receive shadows from anything (occlusion test is not performed) |
− | #Receive shadows is 1: only receive shadows | + | #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 worldspawn. | ||
#Receive shadows is < 1: only receive shadows from objects with same abs(cast shadows). | #Receive shadows is < 1: only receive shadows from objects with same abs(cast shadows). | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | By default [[worldspawn]] and [[func_group]] have cast shadows and receive shadows 1. All other entities have cast shadows 0 and receive shadows 1. | |
− | + | =Shadow groups and ambient occlusion= | |
+ | Shadow groups affects the looks of ambient occlusion. Mostly the gain effect (which brightens the edges). | ||
=See also= | =See also= |