@cached
def gather_material_pbr_metallic_roughness(blender_material, orm_texture, export_settings):
    if (not __filter_pbr_material(blender_material, export_settings)):
        return None
    material = gltf2_io.MaterialPBRMetallicRoughness(base_color_factor=__gather_base_color_factor(blender_material, export_settings), base_color_texture=__gather_base_color_texture(blender_material, export_settings), extensions=__gather_extensions(blender_material, export_settings), extras=__gather_extras(blender_material, export_settings), metallic_factor=__gather_metallic_factor(blender_material, export_settings), metallic_roughness_texture=__gather_metallic_roughness_texture(blender_material, orm_texture, export_settings), roughness_factor=__gather_roughness_factor(blender_material, export_settings))
    export_user_extensions('gather_material_pbr_metallic_roughness_hook', export_settings, material, blender_material, orm_texture)
    return material
@cached
def gather_material_pbr_metallic_roughness(blender_material, orm_texture, export_settings):
    if (not __filter_pbr_material(blender_material, export_settings)):
        return None
    material = gltf2_io.MaterialPBRMetallicRoughness(base_color_factor=__gather_base_color_factor(blender_material, export_settings), base_color_texture=__gather_base_color_texture(blender_material, export_settings), extensions=__gather_extensions(blender_material, export_settings), extras=__gather_extras(blender_material, export_settings), metallic_factor=__gather_metallic_factor(blender_material, export_settings), metallic_roughness_texture=__gather_metallic_roughness_texture(blender_material, orm_texture, export_settings), roughness_factor=__gather_roughness_factor(blender_material, export_settings))
    export_user_extensions('gather_material_pbr_metallic_roughness_hook', export_settings, material, blender_material, orm_texture)
    return material