Commit: 5ff8fcfa7241e2b15c6ac110538f40e277db3f37
Author: Clément Foucault
Date: Wed Aug 14 23:43:33 2019 +0200
Branches: master
https://developer.blender.org/rB5ff8fcfa7241e2b15c6ac110538f40e277db3f37
Eevee: Fix tangent map node not using the right UVMap
===================================================================
M source/blender/nodes/shader/nodes/node_shader_tangent.c
===================================================================
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, "");
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs