diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-06-04 13:29:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-06-04 19:41:19 +0300 |
commit | 2e4d27669be4ca0b964489467329f73f072d7b44 (patch) | |
tree | f8a4dddc25aafade207503e6d7f65e50f83de2e3 /source/blender/gpu | |
parent | 5916b09670b861117b9c87778c0ddc8bcf0a2c35 (diff) |
Fix T65042 Eevee: Hair Info Tangent Normal not working correctly
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
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 |