Darkplaces lighting/Additional options
From Blood Wiki
(Difference between revisions)
(Created page with "{{navigation title|Light sources}} Darkplaces lighting renderer have a bunch of misc options to tweak. === Optimizations === For best performance, all optimisations should be ...") |
|||
Line 1: | Line 1: | ||
{{navigation title|Light sources}} | {{navigation title|Light sources}} | ||
Darkplaces lighting renderer have a bunch of misc options to tweak. | Darkplaces lighting renderer have a bunch of misc options to tweak. | ||
− | + | ==Optimizations== | |
For best performance, all optimisations should be on. | For best performance, all optimisations should be on. | ||
Line 8: | Line 8: | ||
{{cvar|r_shadow_usebihculling|Use [[BIH | Bounding Interval Hierarchy]] for culling lit surfaces instead of [[BSP|Binary Space Partitioning]]}} | {{cvar|r_shadow_usebihculling|Use [[BIH | Bounding Interval Hierarchy]] for culling lit surfaces instead of [[BSP|Binary Space Partitioning]]}} | ||
− | + | ==Light attenuation== | |
This console variables change attenuation for all dynamic lights. | This console variables change attenuation for all dynamic lights. | ||
Revision as of 00:07, 6 August 2012
Darkplaces lighting | previous chapter: Light sources
Contents |
Darkplaces lighting renderer have a bunch of misc options to tweak.
Optimizations
For best performance, all optimisations should be on.
r_shadow_scissor : Use scissor optimization of light rendering (restricts rendering to the portion of the screen affected by the light)
r_shadow_sortsurfaces : Improve performance by sorting illuminated surfaces by texture
r_shadow_usebihculling : Use Bounding Interval Hierarchy for culling lit surfaces instead of Binary Space Partitioning
Light attenuation
This console variables change attenuation for all dynamic lights.
r_shadow_lightattenuationdividebias : Controls the speed of light fading, 1 is default linear fade.
r_shadow_lightattenuationlinearscale : Linear scale applied during attenuation, larger values will make lesser half-light zones
r_shadow_lightintensityscale : Renders all lights brighter or darker
r_shadow_lightradiusscale : Renders all world lights larger or smaller