forked from blender/blender
MaterialX: Implement export of Input nodes #20
@ -39,6 +39,14 @@ static int gpu_shader_bevel(GPUMaterial *mat,
|
|||||||
return GPU_stack_link(mat, node, "node_bevel", in, out);
|
return GPU_stack_link(mat, node, "node_bevel", in, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NODE_SHADER_MATERIALX_BEGIN
|
||||||
|
{
|
||||||
|
/* TODO: This node doesn't have an implementation in MaterialX 1.38.6.*/
|
||||||
BogdanNagirniak marked this conversation as resolved
|
|||||||
|
return val(MaterialX::Vector3(1.0f, 1.0f, 1.0f));
|
||||||
BogdanNagirniak marked this conversation as resolved
Outdated
Bogdan Nagirniak
commented
`return get_input_link("Normal", NodeItem::Type::Vector3);`
|
|||||||
|
;
|
||||||
|
}
|
||||||
|
NODE_SHADER_MATERIALX_END
|
||||||
|
|
||||||
} // namespace blender::nodes::node_shader_bevel_cc
|
} // namespace blender::nodes::node_shader_bevel_cc
|
||||||
|
|
||||||
/* node type definition */
|
/* node type definition */
|
||||||
@ -53,6 +61,7 @@ void register_node_type_sh_bevel()
|
|||||||
ntype.draw_buttons = file_ns::node_shader_buts_bevel;
|
ntype.draw_buttons = file_ns::node_shader_buts_bevel;
|
||||||
ntype.initfunc = file_ns::node_shader_init_bevel;
|
ntype.initfunc = file_ns::node_shader_init_bevel;
|
||||||
ntype.gpu_fn = file_ns::gpu_shader_bevel;
|
ntype.gpu_fn = file_ns::gpu_shader_bevel;
|
||||||
|
ntype.materialx_fn = file_ns::node_shader_materialx;
|
||||||
|
|
||||||
nodeRegisterType(&ntype);
|
nodeRegisterType(&ntype);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user
NOTE
insteadTODO
if there is no implementation in MatX. No need 1.38.6, justin MaterialX