Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Transparency #4

Open
monic025 opened this issue Aug 5, 2022 · 1 comment
Open

Transparency #4

monic025 opened this issue Aug 5, 2022 · 1 comment

Comments

@monic025
Copy link

monic025 commented Aug 5, 2022

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

@Manashiku
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants