I'm writing a tool to assist with modding new characters into the game Crusader Kings II and I'm a bit stuck on colouring the hair and beards.
The game starts with a texture like this:
(source: serayen.com)
It then blends it with three colours - a shadow, a base, and a highlight, such as:
- Dark: 10, 10, 10
- Base: 125, 85, 56
- Highlight: 255, 255, 255
Which results in this:
(source: serayen.com)
What kind of blending is it using? How would I go about doing it in C#?