def add_color_emission_to_material(mesh_obj):
    """Add color emmision for the given mesh to improve the visibility."""
    for material in mesh_obj.data.materials:
        node_tree = material.node_tree
        if "Principled BSDF" not in node_tree.nodes:  # is created by default
            break
        principled_bsdf_node = node_tree.nodes["Principled BSDF"]
        link = principled_bsdf_node.inputs["Base Color"].links[0]
        input_socket = link.from_socket

        node_tree.links.new(
            input_socket,
            principled_bsdf_node.inputs["Emission Color"],
        )
Add color emmision for the given mesh to improve the visibility.
photogrammetry_importer/importers/mesh_utility.py