INNER CODE UNIT · Python

handle_material_texture_simple

skarndev/umodel_tools · umodel_tools/game_profiles/__init__.py:70

    def handle_material_texture_simple(mat: bpy.types.Material,
                                       tex_type: str,
                                       tex_short_name: str,
                                       img_node: bpy.types.ShaderNodeTexImage,
                                       bsdf_node: bpy.types.ShaderNodeBsdfDiffuse) -> None:
        """Handles adding texture maps to a simplified material. Only diffuse maps will be processed by this
        function.

        :param mat: Currently processed material.
        :param tex_type: Current texture type.
        :param tex_short_name: Basename of the texture file without extension.
        :param img_node: Image node in the material's node tree.
        :param bsdf_node: DiffuseBSDF node in the material's node tree.
        """

    def end_process_material(mat: bpy.types.Material) -> None:
        """Called at the end of the material processing, can be used to cleanup state (if any is kept).

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…