]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Overhauled bouncegrid light splatting for performance reasons - instead of a series...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jan 2020 12:53:04 +0000 (12:53 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jan 2020 12:53:04 +0000 (12:53 +0000)
commit988b92d1a76f2d6a04b75ab2f93779c8317e8cc9
treeb0581c41b6a78eda416fe85386975dfcbdef8b49
parentdc18f6c95faaa755790bbd4a57cdc01d0da35191
Overhauled bouncegrid light splatting for performance reasons - instead of a series of radial dots being accumulated in the texture, it is spherical distance from line segment calculations performed at each pixel, optimized to process pixels in order (filtering down the list of splat paths in each loop).  This is a big framerate increase (as raytracing was not the bottleneck at all), and could be threaded in theory.

This required rebalancing the way that spacing interacts with quality, and the conespread parameter has been eliminated (as measuring distance to a non-uniform capsule seems especially challenging, but maybe that could be added back someday), so all parameters have changed a bit.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12491 d7cf8633-e32d-0410-b094-e92efae38249
r_shadow.c
r_shadow.h