MMDGenshin-archive icon indicating copy to clipboard operation
MMDGenshin-archive copied to clipboard

Transparency

Open monic025 opened this issue 1 year ago • 1 comments

Hi! I love the shader, I think it works great for Genshin official characters.

The issue I have at the moment is with transparency. Anything transparent just become black as seen on my custom model below. image image

While she should have looked like this image

The only solutions i found was to cut the model itself, but it's not very efficient. It's nothing huge tho, so would be great to have transparency implemented :)

monic025 avatar Aug 05 '22 13:08 monic025

This is because of the way it's written. Mihoyo has flags for proper alpha usage for their diffuse textures in their own shaders. However, there hasnt been a genshin character yet that uses it so I opted to only include support for the two currently used alpha forms. Those being an emission mask and a blush mask. Thats why the shader will render proper alpha as black chunks.

Manashiku avatar Aug 21 '22 11:08 Manashiku