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 ...") |
m (VorteX moved page Darkplaces lighting/Additional renderer options to Darkplaces lighting/Additional options without leaving a redirect) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{navigation title| | + | {{navigation title|}} |
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. | ||
Latest revision as of 17:50, 9 August 2012
Darkplaces lighting renderer have a bunch of misc options to tweak.
[edit] 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
[edit] 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