Modding Request: Allow HairDefs to use cutoff shaders/masks

Started by sumghai, May 17, 2018, 08:16:41 PM

Previous topic - Next topic

sumghai

At present, a pawn's hair color completely tints the entire hair texture, using interpolation of white and greyscale regions to determine the intensity of the base color.

It would be nice if HairDefs were able to use cutoff shaders/masks like apparel, furniture and buildings, so that modders can make hairstyles with integrated hair accessories of fixed colors.

To give an example, I recently made a custom female hairstyle with two red hair barrettes. I found that if the game chooses a darker base color, the barrettes end up being tinted to almost black. Enabling cutoff shaders/masks for HairDefs would allow me to make the barrettes permanently red regardless of what base color the hair is.