> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# MeshTextureToImage - ComfyUI Built-in Node Documentation

> This node extracts a mesh's baked textures and returns them as separate images: base color, metallic, roughness, occlusion, and normal map.

This node extracts a mesh's baked textures and returns them as separate images: base color, metallic, roughness, occlusion, and normal map. Texture channels that were not baked come back as neutral defaults — white for occlusion and a flat blue for the normal map.

## Inputs

| Parameter | Description                                                                                                                                                                                                 | Data Type | Required | Range |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ----- |
| `mesh`    | The mesh whose baked textures are extracted. The mesh must have a base color texture; meshes that only have vertex colors (for example after a PaintMesh node) do not contain a texture and cause an error. | MESH      | Yes      | —     |

Note: The mesh must have a baked base color texture. If it does not, the node raises an error and recommends running BakeTextureFromVoxel first. When the metallic-roughness texture is missing, the `metallic` and `roughness` outputs are black (0). The `occlusion` output is white unless the mesh contains baked ambient occlusion. The `normal_map` output is a flat neutral blue when no normal map was baked.

## Outputs

| Output Name  | Description                                                                                                                                                                                       | Data Type |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `base_color` | The base color texture of the mesh as an image.                                                                                                                                                   | IMAGE     |
| `metallic`   | The metallic channel from the mesh's occlusion-roughness-metallic texture, as a grayscale image. Black (0) means non-metallic, white (1) means fully metallic. Black when the texture is missing. | IMAGE     |
| `roughness`  | The roughness channel from the mesh's occlusion-roughness-metallic texture, as a grayscale image. Black when the texture is missing.                                                              | IMAGE     |
| `occlusion`  | The ambient occlusion channel from the mesh's occlusion-roughness-metallic texture, as a grayscale image. White (no occlusion) when ambient occlusion was not baked.                              | IMAGE     |
| `normal_map` | The normal map texture of the mesh. A flat neutral normal map (0.5, 0.5, 1.0, appearing as flat blue) when no normal map was baked.                                                               | IMAGE     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/MeshTextureToImage/en.md)

***

**Source fingerprint (SHA-256):** `775fd50601ed9ebfc48abf1832c58acbac0f48b5faaebb5f7f46ae4a501278c4`
