Commit: d0b0e7efed709613e53effa3e0381312310a117f
Author: Clément Foucault
Date:   Wed Nov 14 15:54:10 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBd0b0e7efed709613e53effa3e0381312310a117f

Eevee: Cleanup: Fix wrong sun area light power calculation

===================================================================

M       source/blender/draw/engines/eevee/eevee_lights.c

===================================================================

diff --git a/source/blender/draw/engines/eevee/eevee_lights.c 
b/source/blender/draw/engines/eevee/eevee_lights.c
index 962cb7c2033..5336e197d02 100644
--- a/source/blender/draw/engines/eevee/eevee_lights.c
+++ b/source/blender/draw/engines/eevee/eevee_lights.c
@@ -661,8 +661,7 @@ static void eevee_light_setup(Object *ob, EEVEE_Light *evli)
                // power = M_PI * M_PI * 0.78; /* XXX : Empirical, Fit cycles 
power */
        }
        else {
-               power = 1.0f / (4.0f * evli->radius * evli->radius * M_PI * 
M_PI) * /* 1/(r²*Pi) */
-                       12.5f; /* XXX : Empirical, Fit cycles power */
+               power = 1.0f / (evli->radius * evli->radius * M_PI); /* 
1/(r²*Pi) */
                /* Make illumation power closer to cycles for bigger radii. 
Cycles uses a cos^3 term that we cannot reproduce
                 * so we account for that by scaling the light power. This 
function is the result of a rough manual fitting. */
                power *= 1.0f + evli->radius * evli->radius * 0.5f;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to