> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/hair-modeling-beginner-tutorial/vertex-color-and-hair.md).

# Vertex Color and Hair

How vertex colour influences hair in Cyberpunk

## Summary

**Published:** Jul 07, 2025 by [mana vortex](mailto:undefined) based on a rant by IslandDancer\
**Last documented update:** Jul 07, 2025 by [mana vortex](mailto:undefined)

Cyberpunk hair material uses the vertex colour attribute to fake ambient occlusion. They are usually red at the scalp and the innermost layer of hair cards, whereas the outer layers are black.

Doing it the other way around looks bad:

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-5f1df15767005505bc4b840b122e2a1e54596299%2Fhair_vertex_colour_2.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-3f040b62c4d94c1afa565fa561f1454bd981038f%2Fhair_vertex_colour_1.png?alt=media" alt=""><figcaption><p>Red is dark and dull, black is bright and shiny</p></figcaption></figure>

## Anisotropy

[Anisotropy](http://www.neilblevins.com/art_lessons/aniso_ref_real_world/aniso_ref_real_world.htm) is a reflection characteristic of any surface with a grained/grooved structure that runs predominantly in one direction. Reflections blur and stretch perpendicular to the direction of the grooves.

Cyberpunk mimics this behaviour with the **flow texture,** which acts as a tangent map in telling the shader that the hair strands run from root to tip:

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-3c710aa0be25ce6581ea3b6ee8f2b95a656e08a9%2Fhair_vertex_colour_.png?alt=media" alt=""><figcaption><p>Directions are encoded via colour</p></figcaption></figure>

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-aae50c03450f7d6e1292d41e889c3eac358211b4%2Fhair_vertex_colour_3.png?alt=media" alt=""><figcaption></figcaption></figure>

The dread flow map is inverted, as the dreadlocks have strands running in the opposite direction.

## Demo video

{% embed url="<https://www.youtube.com/watch?v=RvR32uctPHY>" %}
Video courtesy of IslandDancer. Paint job is deliberately shitty.
{% endembed %}

{% embed url="<https://www.youtube.com/watch?v=Mf1sM1y0X2Q>" %}
Anissotropy in action, courtesy of IslandDancer
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/hair-modeling-beginner-tutorial/vertex-color-and-hair.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
