This adds initial support for rendering Cycles and EEVEE shaders in Hydra render engines that support MaterialX. Not all nodes are currently supported, see the detailed compatibility list in #112864. Co-authored-by: Georgiy Markelov <georgiy.m.markelov@gmail.com> Co-authored-by: Vasyl Pidhirskyi <vpidhirskyi@gmail.com> Pull Request: https://projects.blender.org/blender/blender/pulls/111765
21 lines
514 B
C++
21 lines
514 B
C++
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include <MaterialXCore/Document.h>
|
|
|
|
struct Depsgraph;
|
|
struct Material;
|
|
|
|
class ExportImageFunction;
|
|
|
|
namespace blender::nodes::materialx {
|
|
|
|
MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph,
|
|
Material *material,
|
|
ExportImageFunction export_image_fn);
|
|
|
|
} // namespace blender::nodes::materialx
|