Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-06-04 13:29:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-06-04 19:41:19 +0300
commit2e4d27669be4ca0b964489467329f73f072d7b44 (patch)
treef8a4dddc25aafade207503e6d7f65e50f83de2e3 /source/blender
parent5916b09670b861117b9c87778c0ddc8bcf0a2c35 (diff)
Fix T65042 Eevee: Hair Info Tangent Normal not working correctly
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
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