forked from blender/blender
MaterialX: Implement export of Input nodes #20
@ -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
|
|||||||
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user
I think it is implemented here, use NOTE that other properties of node are unsupported