Need to improve Normal Maps Quality #25

Merged
Bogdan Nagirniak merged 1 commits from DagerD/blender-addons:BLEN-471 into materialx-addon 2023-07-28 16:24:32 +02:00
Showing only changes of commit 9d2208c5e6 - Show all commits

View File

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