Reflection environment refactor, optimization and clean up. Fixed blending bug with layered cubemaps. Added diffuse from captures as alternative to lightmaps. Still tied to cvar.
[CL 2059445 by Brian Karis in Main branch]
* renamed function to be more clear
* fixed shader warning about same variable declared 2 times (scope issue)
[CL 2042799 by Martin Mittring in Main branch]