INNER CODE UNIT · Python

process_material

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

    def process_material(mat: bpy.types.Material, desc_ast: lark.Tree, use_pbr: bool) -> None:
        """Does all sorts of unspecified processing on the material prior to texture imports.

        :param mat: Blender material we are processing.
        :desc_ast: Lark AST tree representing the corresponding material descriptor. Can be used to obtain
            any additional information required to implement game specifics.
        :use_pbr: True if material is imported in a PBR mode.
        """

    def do_process_texture(tex_type: str, tex_short_name: str) -> bool:
        """Determines whether to process the texture or not.

        :param tex_type: Texture type string retrieved from .props.txt.
        :param tex_short_name: Basename of the texture file without extension.
        :return: True if should process, False if should discard.
        """

    def is_diffuse_tex_type(tex_type: str, tex_short_name: str) -> bool:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…