[Bf-blender-cvs] [09413fad12c] blender2.8: Eevee: Fix glossy node roughness.

Clément Foucault noreply at git.blender.org
Mon Jul 24 15:55:48 CEST 2017


Commit: 09413fad12c92fcd6c3410eadcdfc8f91bc028ef
Author: Clément Foucault
Date:   Thu Jul 20 16:54:57 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB09413fad12c92fcd6c3410eadcdfc8f91bc028ef

Eevee: Fix glossy node roughness.

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

M	source/blender/gpu/shaders/gpu_shader_material.glsl

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

diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index bf4ce756bde..c2956011ffa 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2686,6 +2686,7 @@ void node_bsdf_glossy(vec4 color, float roughness, vec3 N, float ssr_id, out Clo
 {
 #ifdef EEVEE_ENGINE
 	vec3 ssr_spec;
+	roughness = sqrt(roughness);
 	vec3 L = eevee_surface_glossy_lit(N, vec3(1.0), roughness, 1.0, int(ssr_id), ssr_spec);
 	vec3 vN = normalize(mat3(ViewMatrix) * N);
 	result = Closure(L * color.rgb, 1.0, vec4(ssr_spec * color.rgb, roughness), normal_encode(vN, viewCameraVec), int(ssr_id));




More information about the Bf-blender-cvs mailing list