Blender Git Commit Log

Git Commits -> Revision 8c7d970

Revision 8c7d970 by Lukas Stockner (master)
December 11, 2021, 00:02 (GMT)
Sky: Use Gauss-Laguerre quadrature for optical depth calculation

This allows to use fewer evaluations (30 msec down to 23 for me) while giving more accurate results (3x-10x less relative absolute error) compared to classic ray marching.

Not a massive difference, but meh, it's better. For Cycles the speedup doesn't really matter much, but I also have a patch for Eevee support.

I've also tried Gauss-Legendre and Gauss-Lobatto - the latter was always worse, while the former was slightly better at 2deg elevation but notably worse on 15deg.

Unfortunately the same approach can't be used for the integration along the primary ray, since there we also need the accumulated transmission so far at every integration point, not just the total result.

Differential Revision:

Commit Details:

Full Hash: 8c7d970e2c7c2b2f1d052c0e8039326a1225ce76
Parent Commit: 1a02c0d
Lines Changed: +42, -15

1 Modified Path:

/intern/sky/source/sky_nishita.cpp (+42, -15) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021