[Bf-blender-cvs] [65fee32324f] blender2.8: Eevee: Volume: Fix incorrect Light intensity compared to cycles

Clément Foucault noreply at git.blender.org
Tue Oct 9 19:08:30 CEST 2018


Commit: 65fee32324f0200e15cb82176a11a6da6014ca10
Author: Clément Foucault
Date:   Tue Oct 9 19:06:19 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB65fee32324f0200e15cb82176a11a6da6014ca10

Eevee: Volume: Fix incorrect Light intensity compared to cycles

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

M	source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl

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

diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl
index 5f641c5d490..36c4562e137 100644
--- a/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl
@@ -75,10 +75,11 @@ vec3 light_volume(LightData ld, vec4 l_vector)
 	}
 	else if (ld.l_type == SUN) {
 		power = (4.0f * ld.l_radius * ld.l_radius * M_2PI) * (1.0 / 12.5); /* Removing area light power*/
-		power *= M_2PI * 0.78; /* Matching cycles with point light. */
+		power *= M_PI * 0.5; /* Matching cycles. */
 	}
 	else {
 		power = (4.0 * ld.l_radius * ld.l_radius) * (1.0 /10.0);
+		power *= M_2PI; /* Matching cycles with point light. */
 	}
 
 	/* OPTI: find a better way than calculating this on the fly */



More information about the Bf-blender-cvs mailing list