Eevee: Fix tangent map node not using the right UVMap

This commit is contained in:
2019-08-14 23:43:33 +02:00
parent 6fcd071c7b
commit 5ff8fcfa72

View File

@@ -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, "");