forked from blender/blender
MaterialX: Implement export of Input nodes #20
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user