diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-08-15 00:43:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-08-15 00:59:34 +0300 |
commit | 5ff8fcfa7241e2b15c6ac110538f40e277db3f37 (patch) | |
tree | e5294254893ce081bb245613785d6aca2ce79f04 /source/blender/nodes | |
parent | 6fcd071c7bcb8c9a5e0a7d0e7a6ef6363e43627e (diff) |
Eevee: Fix tangent map node not using the right UVMap
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_tangent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_tangent.c b/source/blender/nodes/shader/nodes/node_shader_tangent.c index 6795f48edb3..478b9524737 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tangent.c +++ b/source/blender/nodes/shader/nodes/node_shader_tangent.c @@ -42,7 +42,8 @@ static int node_shader_gpu_tangent(GPUMaterial *mat, NodeShaderTangent *attr = node->storage; if (attr->direction_type == SHD_TANGENT_UVMAP) { - return GPU_stack_link(mat, node, "node_tangentmap", in, out, GPU_attribute(CD_TANGENT, "")); + return GPU_stack_link( + mat, node, "node_tangentmap", in, out, GPU_attribute(CD_TANGENT, attr->uv_map)); } else { GPUNodeLink *orco = GPU_attribute(CD_ORCO, ""); |