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 b934a39fb3 - Show all commits

View File

@ -40,6 +40,13 @@ static int node_shader_gpu_wireframe(GPUMaterial *mat,
} }
} }
NODE_SHADER_MATERIALX_BEGIN
{
/* TODO: This node doesn't have an implementation in MaterialX 1.38.6.*/
return val(1.0f);
}
NODE_SHADER_MATERIALX_END
} // namespace blender::nodes::node_shader_wireframe_cc } // namespace blender::nodes::node_shader_wireframe_cc
/* node type definition */ /* node type definition */
@ -53,6 +60,7 @@ void register_node_type_sh_wireframe()
ntype.declare = file_ns::node_declare; ntype.declare = file_ns::node_declare;
ntype.draw_buttons = file_ns::node_shader_buts_wireframe; ntype.draw_buttons = file_ns::node_shader_buts_wireframe;
ntype.gpu_fn = file_ns::node_shader_gpu_wireframe; ntype.gpu_fn = file_ns::node_shader_gpu_wireframe;
ntype.materialx_fn = file_ns::node_shader_materialx;
nodeRegisterType(&ntype); nodeRegisterType(&ntype);
} }