# Materials: troubleshooting

## My material ignores transparency!

If you have [done everything correctly](/cyberpunk-2077-modding/modding-guides/textures-and-luts/images-importing-editing-exporting.md), then something in the mesh got borked. Easiest way to fix:

* Export your mesh
* Re-name it to act as a backup
* Replace it with something where transparency definitely works
* Import over that mesh
* Copy-paste the material setup from the original mesh

## My material is black and shiny!

That happens when one of the `depotPath`s can't be resolved. Double-check your `values` — [Wolvenkit File Validation](https://wiki.redmodding.org/wolvenkit/wolvenkit-app/file-validation) can help you with this.

### All paths are okay, it's still broken

It's possible that you have a texture ref inside an object that expects mlsetups or mlmasks, or vice versa. File validation can't test for this, so you'll have to do it by hand.

Make sure to have the correct kind of cKeyValuePair for your kind of material.

## My material isn't showing at all!

Test if it is the material, or if your mistake is somewhere else. Replace your material's `basePath` with something that you'll definitely recognize, such as `base\environment\decoration\containers\cases\coffin\textures\m_z_gold.mi`.

If the gold material shows up and your custom material doesn't, then you have an issue with the material.

If the gold material also doesn't show up, then your problem lies somewhere else. Maybe the entire [chunk ](/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/3d-objects-.mesh-files/submeshes-materials-and-chunks.md#chunkmasks-partially-hiding-meshes)is hidden?

## My black \<material> looks grey in sunlight!

By default all the base game leather materials in the game have a metalness of zero and can only be scaled based on roughness. Black leather looks like black leather, even under direct sunlight because inside all the cracks and crevices the leather is black as night. However, because the game has leather setup without metalness options, the cracks and crevices are also flooded with light and so the whole material looks like a washed out flat grey.

For more information, see [Vantablack leather through Metalness](/cyberpunk-2077-modding/for-mod-creators-theory/materials/textures/vantablack-leather-through-metalness.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/materials/materials-troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
