I am currently writing a model viewer for the game Final Fantasy XIV. I've run into an issue that I am trying to currently solve.
The hair models are all stored as a single mesh. Various layers are placed on top of each other to create a more realistic effect. Then an alpha is applied for the fine threads.
Now the issue I am running into is when I apply the alpha, it turns out like this:
What's happening is instead of replacing/blending the fragment with the layer below, it is doing it with the clear color probably because there is nothing in the buffer at the time (it's a single mesh remember). How would I go about fixing this issue? Rendering it twice?