View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005189||The Dark Mod||Coding||public||22.03.2020 02:19||22.03.2020 02:22|
|Product Version||TDM 2.08|
|Target Version||TDM 2.09|
|Summary||0005189: shadowworldonly light keyword for shadows optimization|
|Description||The engine has "noshadows" spawnarg for lights, which makes the light rays pass through everything.|
This keyword is often used to optimize away shadows drawing, which is often pretty expensive, especially for complex geometry with stencil implementation.
However, this keyword makes the light pass through brush walls (which is undesirable for mappers) and hence disables some useful area/portals optimization (performance).
The idea is to add "shadowworldonly" spawnarg for such optimization purposes.
For a light with this spawnarg, shadows from worldspawn brushes (and patches) are enabled, but shadows from any entities (and models) are disabled.
This greatly reduces shadow drawing complexity, makes lights behave in a well-defined way (stable w.r.t future engine changes), and allows to use visportal-related optimizations (like light flow and interaction culling, including 0005172).
|Additional Information||See discussion:|
|Tags||No tags attached.|