> For the complete documentation index, see [llms.txt](https://docs.gta.clothing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gta.clothing/basics/good-to-know/material-editor.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Material Editor

View shaders and edit material parameters for selected drawables

For the meanings of packed specular channels, hair ramps, fine detail and vertex-driven effects, see [Ped Material Channels](https://docs.gta.clothing/cloth-modding/ped-material-channels.md). Set the values for the shader the material uses, and check the result in game.

## Introduction

The **Material Editor** shows the shader of each part of the currently selected drawable and lets you edit its material parameters. Use it to fine‑tune how a cloth looks in‑game by adjusting texture slots and numeric parameters. It cannot change a part's shader: set the shader in Blender or your 3D tool and use **Replace source…**.

{% hint style="info" %}
Open via context menu: Right‑click an appearance item in the left list and choose **Edit and organize > Edit materials** (or press **Ctrl+K** and paste `>Edit materials`).
{% endhint %}

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-c1483bb68b1be6f8dadaa86aa2f9e324a7accb6e%2Fmaterial-editor.png?alt=media" alt="The Material Editor for Male 16 top. Model parts on the left lists ped.sps under High Detail (13143 vertices) and ped_default.sps under Medium and Low Detail. ped.sps is chosen and the Textures tab is open beside Shine, Wrinkles and wind, and Advanced: Colour texture jbib_diff_000_a_uni, Colour palette None, volumesampler givemechecker, and the Normal map jbib_normal_000 and Specular map jbib_spec_000 marked Embedded, with the note that they change with Edit embedded textures. Save and close and Cancel are at the bottom."><figcaption><p>The Material Editor: choose a part on the left, then change its textures, shine, wrinkles and wind, or advanced values.</p></figcaption></figure>

## Overview

The editor lists the parts of the drawable under **Model parts**, grouped by detail level. Selecting a part shows its shader and four tabs:

* **Textures**: the texture each slot uses. A texture name you can edit is a text field. A texture stored inside the model shows a lock and **Embedded**; change it with the [Embedded Textures Editor](https://docs.gta.clothing/basics/good-to-know/embedded-textures-editor.md).
* **Shine**: specular strength and falloff, edge shine (fresnel), normal map strength, and the hair shine values of hair shaders.
* **Wrinkles and wind**: the movement of the cloth or hair in the wind.
* **Advanced**: rarely changed values such as draw order, and every value Durty Cloth Tool shows by its shader name.

Known values have a readable name, with the shader's own name (for example `specularIntensityMult`) under it. The readable names describe what the shader's parameter names say; check the result in game.

A value shows only the numbers its shader uses. A single number is one field. Several numbers are labelled X, Y, Z and W, or R, G, B and A for a colour.

A value is applied when you press **Enter** or leave its field. A field that does not hold a number is marked, says under it what to enter, and keeps its previous value until you correct it.

**Save and close** writes the changes to the drawable. When the drawable is worn in the 3D preview, the preview shows the new values right away.

## Workflow Tips

* If you rename or replace embedded textures, review material parameters to ensure expected channels (e.g., normal/specular) still match. See [Embedded Textures Editor](https://docs.gta.clothing/basics/good-to-know/embedded-textures-editor.md).
* Use the 3D preview to verify results on different lighting. See [3D Previewing Clothes](https://docs.gta.clothing/basics/essential-knowledge/3d-preview-clothes.md).

## Best Practices

* Avoid extreme parameter values that cause shimmering or banding.
* Rebuild and test in‑game for final verification. See [Build Options](https://docs.gta.clothing/basics/essential-knowledge/build-options.md).

## See also

* [Embedded Textures Editor](https://docs.gta.clothing/basics/good-to-know/embedded-textures-editor.md)
* [Drawable Types & Textures](https://docs.gta.clothing/game-mechanics/drawable-types-and-textures.md)
* [Textures/Power of two](https://docs.gta.clothing/cloth-modding/textures-power-of-two.md)
