Export to MatX various Texture nodes #5

Merged
Bogdan Nagirniak merged 17 commits from matx-add-tex-nodes into matx-export-material 2023-08-31 19:49:26 +02:00
2 changed files with 0 additions and 14 deletions
Showing only changes of commit 08715e9eb5 - Show all commits

View File

@ -6,17 +6,10 @@
#include "hydra/image.h" #include "hydra/image.h"
#include "DEG_depsgraph_query.h"
#include <MaterialXFormat/XmlIo.h>
namespace blender::nodes::materialx { namespace blender::nodes::materialx {
NodeItem TexCheckerNodeParser::compute() NodeItem TexCheckerNodeParser::compute()
{ {
Image *image = (Image *)node->id;
NodeTexChecker *tex = static_cast<NodeTexChecker *>(node->storage);
Scene *scene = DEG_get_input_scene(depsgraph);
Main *bmain = DEG_get_bmain(depsgraph);
NodeItem texcoord = create_node("texcoord", "vector2", true); NodeItem texcoord = create_node("texcoord", "vector2", true);
NodeItem frequency = create_node("constant", "vector2", true); NodeItem frequency = create_node("constant", "vector2", true);
NodeItem scale = get_input_value("Scale"); NodeItem scale = get_input_value("Scale");

View File

@ -6,17 +6,10 @@
#include "hydra/image.h" #include "hydra/image.h"
#include "DEG_depsgraph_query.h"
namespace blender::nodes::materialx { namespace blender::nodes::materialx {
NodeItem TexNoiseNodeParser::compute() NodeItem TexNoiseNodeParser::compute()
{ {
Image *image = (Image *)node->id;
NodeTexNoise *tex = static_cast<NodeTexNoise *>(node->storage);
Scene *scene = DEG_get_input_scene(depsgraph);
Main *bmain = DEG_get_bmain(depsgraph);
NodeItem texcoord = create_node("position", "vector3", true); NodeItem texcoord = create_node("position", "vector3", true);
NodeItem scale = get_input_value("Scale"); NodeItem scale = get_input_value("Scale");
NodeItem position = texcoord * scale; NodeItem position = texcoord * scale;