forked from blender/blender
MaterialX: add color nodes #17
@ -6,6 +6,12 @@
|
|||||||
|
|
||||||
namespace blender::nodes::materialx {
|
namespace blender::nodes::materialx {
|
||||||
|
|
||||||
|
NodeItem CurvesFloatNodeParser::compute()
|
||||||
|
{
|
||||||
|
/* TODO: implement */
|
||||||
|
return get_input_value("Value", NodeItem::Type::Float);
|
||||||
|
}
|
||||||
|
|
||||||
NodeItem CurvesRGBNodeParser::compute()
|
NodeItem CurvesRGBNodeParser::compute()
|
||||||
{
|
{
|
||||||
/* TODO: implement */
|
/* TODO: implement */
|
||||||
|
@ -152,6 +152,7 @@ NodeItem NodeParser::get_input_link(const bNodeSocket &socket, NodeItem::Type to
|
|||||||
CASE_NODE_TYPE(SH_NODE_BLACKBODY, BlackbodyNodeParser)
|
CASE_NODE_TYPE(SH_NODE_BLACKBODY, BlackbodyNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_BRIGHTCONTRAST, BrightContrastNodeParser)
|
CASE_NODE_TYPE(SH_NODE_BRIGHTCONTRAST, BrightContrastNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_CLAMP, ClampNodeParser)
|
CASE_NODE_TYPE(SH_NODE_CLAMP, ClampNodeParser)
|
||||||
|
CASE_NODE_TYPE(SH_NODE_CURVE_FLOAT, CurvesFloatNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_CURVE_RGB, CurvesRGBNodeParser)
|
CASE_NODE_TYPE(SH_NODE_CURVE_RGB, CurvesRGBNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_GAMMA, GammaNodeParser)
|
CASE_NODE_TYPE(SH_NODE_GAMMA, GammaNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_COMBINE_COLOR, CombineColorNodeParser)
|
CASE_NODE_TYPE(SH_NODE_COMBINE_COLOR, CombineColorNodeParser)
|
||||||
|
@ -94,6 +94,7 @@ template<class T> NodeItem NodeParser::val(const T &data) const
|
|||||||
DECLARE_NODE_PARSER(BlackbodyNodeParser)
|
DECLARE_NODE_PARSER(BlackbodyNodeParser)
|
||||||
DECLARE_NODE_PARSER(BrightContrastNodeParser)
|
DECLARE_NODE_PARSER(BrightContrastNodeParser)
|
||||||
DECLARE_NODE_PARSER(ClampNodeParser)
|
DECLARE_NODE_PARSER(ClampNodeParser)
|
||||||
|
DECLARE_NODE_PARSER(CurvesFloatNodeParser)
|
||||||
DECLARE_NODE_PARSER(CurvesRGBNodeParser)
|
DECLARE_NODE_PARSER(CurvesRGBNodeParser)
|
||||||
DECLARE_NODE_PARSER(CombineColorNodeParser)
|
DECLARE_NODE_PARSER(CombineColorNodeParser)
|
||||||
DECLARE_NODE_PARSER(CombineXYZNodeParser)
|
DECLARE_NODE_PARSER(CombineXYZNodeParser)
|
||||||
|
Loading…
Reference in New Issue
Block a user