MaterialX: Implement export of Input nodes #20

Merged
Bogdan Nagirniak merged 26 commits from Vasyl-Pidhirskyi/blender:BLEN-530 into matx-export-material 2023-09-15 19:55:37 +02:00
Showing only changes of commit fc2a155e2b - Show all commits

View File

@ -67,6 +67,13 @@ static int node_shader_gpu_uvmap(GPUMaterial *mat,
return 1; return 1;
} }
NODE_SHADER_MATERIALX_BEGIN
{
/* TODO: Partially implemented*/
BogdanNagirniak marked this conversation as resolved
Review

I think it is implemented here, use NOTE that other properties of node are unsupported

I think it is implemented here, use NOTE that other properties of node are unsupported
return texcoord_node();
}
NODE_SHADER_MATERIALX_END
} // namespace blender::nodes::node_shader_uvmap_cc } // namespace blender::nodes::node_shader_uvmap_cc
/* node type definition */ /* node type definition */
@ -84,6 +91,7 @@ void register_node_type_sh_uvmap()
node_type_storage( node_type_storage(
&ntype, "NodeShaderUVMap", node_free_standard_storage, node_copy_standard_storage); &ntype, "NodeShaderUVMap", node_free_standard_storage, node_copy_standard_storage);
ntype.gpu_fn = file_ns::node_shader_gpu_uvmap; ntype.gpu_fn = file_ns::node_shader_gpu_uvmap;
ntype.materialx_fn = file_ns::node_shader_materialx;
nodeRegisterType(&ntype); nodeRegisterType(&ntype);
} }