diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-05-19 13:17:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-05-19 13:17:23 +0300 |
commit | 81e3d904dbe7bf5b07658d5bf7b60a80c61ce940 (patch) | |
tree | dcd2816358842d6e1560b8d4e7fa0a1bb60396dc /source/blender/gpu/shaders | |
parent | 7adb415070394707eec418f058005ebde0158eb2 (diff) | |
parent | a294670bacb1db66ca0aad29df5752b10b8ba7fd (diff) |
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl index 4db27c3049d..a14ff5021bf 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl @@ -37,8 +37,13 @@ void node_geometry(vec3 I, normal = (toworld * vec4(N, 0.0)).xyz; true_normal = normal; # endif + +# ifdef HAIR_SHADER + tangent = -hairTangent; +# else tangent_orco_z(orco, orco); node_tangent(N, orco, objmat, tangent); +# endif parametric = vec3(barycentric, 0.0); backfacing = (gl_FrontFacing) ? 0.0 : 1.0; |