texture_generate_orm
Generate a packed ORM texture from source maps or flat values, packing Occlusion, Roughness, and Metallic into RGB channels for Unreal material pipelines.
Instructions
Generate a packed ORM Texture2D asset for technical-art material pipelines.
The output packs Occlusion into R, Roughness into G, Metallic into B, and alpha to 255. If a source texture path is omitted or cannot be sampled, the matching flat default value is used.
Args: output_name: Texture asset name, e.g. "T_Prop_ORM" folder_path: Content Browser folder for the generated texture occlusion_texture_path: Optional grayscale/source texture for R roughness_texture_path: Optional grayscale/source texture for G metallic_texture_path: Optional grayscale/source texture for B occlusion_channel: Source channel to sample, one of r/g/b/a roughness_channel: Source channel to sample, one of r/g/b/a metallic_channel: Source channel to sample, one of r/g/b/a occlusion: Flat fallback value 0.0-1.0 roughness: Flat fallback value 0.0-1.0 metallic: Flat fallback value 0.0-1.0 width: Generated texture width when flat/default data is used height: Generated texture height when flat/default data is used overwrite: Delete/recreate an existing asset at the same path save: Save the generated texture package immediately
KB: see knowledge_base/08_MATERIALS_AND_RENDERING.md#overview Example: texture_generate_orm(output_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| width | No | ||
| height | No | ||
| metallic | No | ||
| occlusion | No | ||
| overwrite | No | ||
| roughness | No | ||
| folder_path | No | /Game/Materials/Textures | |
| output_name | Yes | ||
| metallic_channel | No | r | |
| occlusion_channel | No | r | |
| roughness_channel | No | r | |
| metallic_texture_path | No | ||
| occlusion_texture_path | No | ||
| roughness_texture_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |