Vertex Color and Hair
How vertex colour influences hair in Cyberpunk
Summary
Created: Jul 07 2025 by mana vortex based on a rant by IslandDancer Last documented update: Jul 07 2025 by mana vortex
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:


Anisotropy
Anisotropy 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:


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