From 65fee32324f0200e15cb82176a11a6da6014ca10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 9 Oct 2018 19:06:19 +0200 Subject: [PATCH] Eevee: Volume: Fix incorrect Light intensity compared to cycles --- source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */