forked from blender/blender
MaterialX: add color nodes #17
@ -160,6 +160,7 @@ if(WITH_MATERIALX)
|
|||||||
materialx/nodes/bsdf_translucent.cc
|
materialx/nodes/bsdf_translucent.cc
|
||||||
materialx/nodes/bsdf_transparent.cc
|
materialx/nodes/bsdf_transparent.cc
|
||||||
materialx/nodes/clamp.cc
|
materialx/nodes/clamp.cc
|
||||||
|
materialx/nodes/color_ramp.cc
|
||||||
materialx/nodes/curves.cc
|
materialx/nodes/curves.cc
|
||||||
materialx/nodes/gamma.cc
|
materialx/nodes/gamma.cc
|
||||||
materialx/nodes/emission.cc
|
materialx/nodes/emission.cc
|
||||||
|
15
source/blender/nodes/shader/materialx/nodes/color_ramp.cc
Normal file
15
source/blender/nodes/shader/materialx/nodes/color_ramp.cc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
|
#include "node_parser.h"
|
||||||
|
|
||||||
|
namespace blender::nodes::materialx {
|
||||||
|
|
||||||
|
NodeItem ColorRampNodeParser::compute()
|
||||||
|
{
|
||||||
|
/* TODO: implement */
|
||||||
|
return empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace blender::nodes::materialx
|
@ -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_VALTORGB, ColorRampNodeParser)
|
||||||
CASE_NODE_TYPE(SH_NODE_CURVE_FLOAT, CurvesFloatNodeParser)
|
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)
|
||||||
|
@ -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(ColorRampNodeParser)
|
||||||
DECLARE_NODE_PARSER(CurvesFloatNodeParser)
|
DECLARE_NODE_PARSER(CurvesFloatNodeParser)
|
||||||
DECLARE_NODE_PARSER(CurvesRGBNodeParser)
|
DECLARE_NODE_PARSER(CurvesRGBNodeParser)
|
||||||
DECLARE_NODE_PARSER(CombineColorNodeParser)
|
DECLARE_NODE_PARSER(CombineColorNodeParser)
|
||||||
|
Loading…
Reference in New Issue
Block a user