Commit: 7c72079381e95964c70261aefc10e14ed25b979a
Author: Luca Rood
Date:   Thu Jun 29 18:45:11 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB7c72079381e95964c70261aefc10e14ed25b979a

Fix hair shading after Eevee shader refactor

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

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

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

diff --git a/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl 
b/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl
index b6996dc4acd..dc2cd3d5351 100644
--- a/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl
@@ -187,7 +187,7 @@ void light_hair_common(
        /* Rotate view vector onto the cross(tangent, light) plane */
        view_vec = normalize(norm_lamp * dot(norm_view, V) + N * dot(N, V));
 
-       float occlusion = (dot(norm_view, norm_lamp) * 0.5 + 0.5);
-       float occltrans = transmission + (occlusion * (1.0 - transmission)); /* 
Includes transmission component */
+       occlu = (dot(norm_view, norm_lamp) * 0.5 + 0.5);
+       occlu_trans = transmission + (occlu * (1.0 - transmission)); /* 
Includes transmission component */
 }
 #endif

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to