[Bf-blender-cvs] [2e4d27669be] master: Fix T65042 Eevee: Hair Info Tangent Normal not working correctly

Clément Foucault noreply at git.blender.org
Tue Jun 4 18:43:04 CEST 2019


Commit: 2e4d27669be4ca0b964489467329f73f072d7b44
Author: Clément Foucault
Date:   Tue Jun 4 12:29:05 2019 +0200
Branches: master
https://developer.blender.org/rB2e4d27669be4ca0b964489467329f73f072d7b44

Fix T65042 Eevee: Hair Info Tangent Normal not working correctly

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

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 306edb76fa5..7f37e741591 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -3405,7 +3405,7 @@ void node_hair_info(out float is_strand,
   is_strand = 1.0;
   intercept = hairTime;
   thickness = hairThickness;
-  tangent = normalize(hairTangent);
+  tangent = normalize(worldNormal);
   random = wang_hash_noise(
       uint(hairStrandID)); /* TODO: could be precomputed per strand instead. */
 #else



More information about the Bf-blender-cvs mailing list