Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transparency #263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Jun 29, 2020

Fix #262

By adding a log in GLTFMaterial.cpp in "getMaterialPBR" method we got :

Diffuse alpha: 0.1, Transparency value: 0.1
Diffuse alpha: 0.01, Transparency value: 0.1
Diffuse alpha: 0.001, Transparency value: 0.1
Diffuse alpha: 0.0001, Transparency value: 0.1
Diffuse alpha: 1e-05, Transparency value: 0.1
Diffuse alpha: 1e-06, Transparency value: 0.1
Diffuse alpha: 1e-07, Transparency value: 0.1

Transparency was applied to diffuse alpha when we get material of each primitive.
There is a problem when object share same Material, material transparency is stacked.

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

Successfully merging this pull request may close these issues.

Losing transparency/alpha channel
0 participants