diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py index 3e18dbad..9395aa43 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials_pbr_metallic_roughness.py @@ -153,3 +153,14 @@ def __has_image_node_from_socket(socket): if not result: return False return True + +def get_default_pbr_for_emissive_node(): + return gltf2_io.MaterialPBRMetallicRoughness( + base_color_factor=[0.0,0.0,0.0,1.0], + base_color_texture=None, + extensions=None, + extras=None, + metallic_factor=None, + metallic_roughness_texture=None, + roughness_factor=None + ) |