Refactored r_shadow_bouncegrid code into several functions, changed
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Aug 2016 18:00:00 +0000 (18:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Aug 2016 18:00:00 +0000 (18:00 +0000)
commit96c5fb3f2bf6068164d1cd425965c0be51b92ea2
tree804024b2b36e1343a9e4a57e43690bb11da01652
parent3dfd03a33dc34d8a469d9b2f334991de226fd897
Refactored r_shadow_bouncegrid code into several functions, changed
photon distribution math to make the photons more stable from frame to
frame (in dynamic mode), the number of photons fired is now based on
r_shadow_bouncegrid_intensityperphoton rather than always going for
maximum photons (accordingly r_shadow_bouncegrid_photons has been
renamed maxphotons and will still apply the old logic if it must).

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