WIP: MaterialX addon #104594

Closed
Bogdan Nagirniak wants to merge 34 commits from BogdanNagirniak/blender-addons:materialx-addon into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 37f156349b - Show all commits

View File

@ -1,6 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2022, AMD
import bpy
from .node_parser import NodeParser
from . import log
@ -19,9 +21,9 @@ class ShaderNodeNormalMap(NodeParser):
f"{DEFAULT_SPACE} will be used")
space = DEFAULT_SPACE
if space == 'TANGENT':
log.warn("Ignoring unsupported UV Map", space, self.node, self.material,
"No UV Map will be used")
if space == 'TANGENT' and bpy.context.scene.render.engine == 'HYDRA_STORM':
log.warn("Known issue: HdStorm doesn't work good with tangent space. Consider changing to object space",
space, self.node, self.material)
result = self.create_node('normalmap', 'vector3', inputs={
'in': color ,