remap_texture_channels
Reassign texture channels in a Godot .tres material by mapping properties to new texture paths, linking hand-painted images into specific material slots.
Instructions
Texture Channel Remapper: Link hand-painted image textures into specific material property slots by altering ext_resource references in a .tres file.
channel_map maps Godot property names to new res:// paths: { 'albedo_texture': 'res://textures/hero_albedo.png', 'normal_texture': 'res://textures/hero_normal.png', 'shader_parameter/base_tex': 'res://textures/hero_hand_painted.png' }
Args: material_path: Absolute path to the .tres material file. channel_map: Dict of {property_name: res_path}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_map | Yes | ||
| material_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |