INNER CODE UNIT · Python
do_process_texture
skarndev/umodel_tools · umodel_tools/game_profiles/__init__.py:35
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:
"""Identifies if the texture is a diffuse color map.
Used for special logic.
:param tex_type: Texture type string retrieved from .props.txt.
:param tex_short_name: Basename of the texture file without extension.
:return: True if texture is a diffuse map, else False.
"""
def handle_material_texture_pbr(mat: bpy.types.Material,