Eevee: Fix tangent map node not using the right UVMap
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user