Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2022-07-07 09:03:39 +0300
committerJulien Duroure <julien.duroure@gmail.com>2022-07-07 09:03:39 +0300
commit042fbefac686666190915d206600a5dab8e03066 (patch)
tree52bb07b361d72b14b98275a07418f7d72489b5bf /io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py
parent09d752e8453415daff11e94f87d8692a04b4eeff (diff)
glTF importer/exporter: Manage some official Khronos Extensions about Materials
KHR_materials_ior KHR_materials_sheen KHR_materials_specular KHR_materials_transmission KHR_materials_variants KHR_materials_emissive_strength KHR_materials_volume Documentation update is still in progress
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py')
-rw-r--r--io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py b/io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py
index 48ad46fd..1ffdc7e4 100644
--- a/io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_unlit.py
@@ -24,12 +24,15 @@ def unlit(mh):
mh.node_tree.links.new(mix_node.inputs[1], transparent_node.outputs[0])
mh.node_tree.links.new(mix_node.inputs[2], emission_node.outputs[0])
- _emission_socket, alpha_socket = make_output_nodes(
+ _emission_socket, alpha_socket, _, _ = make_output_nodes(
mh,
location=(420, 280) if mh.is_opaque() else (150, 130),
+ additional_location=None, #No additional location needed for Unlit
shader_socket=mix_node.outputs[0],
make_emission_socket=False,
make_alpha_socket=not mh.is_opaque(),
+ make_volume_socket=None, # Not possible to have KHR_materials_volume with unlit
+ make_velvet_socket=None #Not possible to have KHR_materials_sheen with unlit
)
base_color(