forked from blender/blender
Export other channels and parameters from texture nodes #16
@ -121,6 +121,4 @@ DECLARE_SHADER_NODE_PARSER(EmissionNodeParser)
|
|||||||
DECLARE_SHADER_NODE_PARSER(MixShaderNodeParser)
|
DECLARE_SHADER_NODE_PARSER(MixShaderNodeParser)
|
||||||
DECLARE_SHADER_NODE_PARSER(SubsurfaceScatteringNodeParser)
|
DECLARE_SHADER_NODE_PARSER(SubsurfaceScatteringNodeParser)
|
||||||
|
|
||||||
extern const MaterialX::Color4 TEX_ERROR_COLOR;
|
|
||||||
|
|
||||||
} // namespace blender::nodes::materialx
|
} // namespace blender::nodes::materialx
|
||||||
|
@ -12,7 +12,7 @@ namespace blender::nodes::materialx {
|
|||||||
|
|
||||||
NodeItem TexEnvironmentNodeParser::compute()
|
NodeItem TexEnvironmentNodeParser::compute()
|
||||||
{
|
{
|
||||||
NodeItem res = val(TEX_ERROR_COLOR);
|
NodeItem res = val(MaterialX::Color4(1.0f, 0.0f, 1.0f, 1.0f));
|
||||||
|
|
||||||
Image *image = (Image *)node_->id;
|
Image *image = (Image *)node_->id;
|
||||||
if (!image) {
|
if (!image) {
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
|
|
||||||
namespace blender::nodes::materialx {
|
namespace blender::nodes::materialx {
|
||||||
|
|
||||||
const MaterialX::Color4 TEX_ERROR_COLOR(1.0f, 0.0f, 1.0f, 1.0f);
|
|
||||||
|
|
||||||
NodeItem TexImageNodeParser::compute()
|
NodeItem TexImageNodeParser::compute()
|
||||||
{
|
{
|
||||||
NodeItem res = val(TEX_ERROR_COLOR);
|
NodeItem res = val(MaterialX::Color4(1.0f, 0.0f, 1.0f, 1.0f));
|
||||||
|
|
||||||
Image *image = (Image *)node_->id;
|
Image *image = (Image *)node_->id;
|
||||||
if (image) {
|
if (image) {
|
||||||
|
Loading…
Reference in New Issue
Block a user