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

diffuseTransmissionTexture is ignored? #601

Closed
echadwick-artist opened this issue Feb 10, 2025 · 3 comments
Closed

diffuseTransmissionTexture is ignored? #601

echadwick-artist opened this issue Feb 10, 2025 · 3 comments

Comments

@echadwick-artist
Copy link
Contributor

Example asset: KhronosGroup/glTF-Sample-Assets#165

When loaded into glTF Sample Viewer, the leaves show very strong transmission color, compared to Babylon.js Sandbox:
Image

It looks like the diffuseTransmissionTexture is being ignored? Debug Mode for Diffuse Transmission Color seems to show only the value for diffuseTransmissionFactor: 0.4.
Image

@UX3D-haertl
Copy link
Contributor

UX3D-haertl commented Feb 11, 2025

This texture is used as diffuseTransmissionTexture: https://github.com/KhronosGroup/glTF-Sample-Assets/blob/fbcb702b5bd1014d092e7390a85515598bed7950/Models/DiffuseTransmissionPlant/glTF/img5.jpg
The spec says the relevant value is stored in the alpha channel, but the texture does not provide an alpha channel (alpha is always set to 1.0)

@UX3D-haertl
Copy link
Contributor

If I change the channel in the shader to e.g. red, it looks correct:

Image

@echadwick-artist
Copy link
Contributor Author

Aha thanks for this! I will change the texture.

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

No branches or pull requests

2 participants