# Vertex Color and Hair

## Summary

Created: 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="/files/arAHILKWAD2vo0HB2bXO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FJKMkYzVlHOeGsOZ1aIS" 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="/files/2cJCbaQYKHOse8hD0RDx" alt=""><figcaption><p>Directions are encoded via colour</p></figcaption></figure>

<figure><img src="/files/1ezfVZv2wPuN9KenmL5P" 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: 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/3d-modelling/hair-modeling-beginner-tutorial/vertex-color-and-hair.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.
