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

Deocing PNG with 1 bit alpha is not supported #157

Open
CedricGuillemet opened this issue Jan 13, 2022 · 1 comment
Open

Deocing PNG with 1 bit alpha is not supported #157

CedricGuillemet opened this issue Jan 13, 2022 · 1 comment

Comments

@CedricGuillemet
Copy link

PNGs with 1 bit alpha are not properly loaded. They are considered RGB image and not alpha is provided.
Take for example this image : https://playground.babylonjs.com/textures/pack1.png

@lvandeve
Copy link
Owner

It seems to work for me, it's an image with a color key (set to black), and when decoding to RGBA, it sets the alpha channel to 0 for those pixels in my case.

Which color format do you decode the image to, and do other images with alpha work, only this one giving issues?

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

No branches or pull requests

2 participants