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

alpha channel is always 255 #1

Open
wolf96 opened this issue Feb 25, 2020 · 1 comment
Open

alpha channel is always 255 #1

wolf96 opened this issue Feb 25, 2020 · 1 comment

Comments

@wolf96
Copy link

wolf96 commented Feb 25, 2020

No description provided.

@cabalex
Copy link

cabalex commented Oct 8, 2024

I think this repo explicitly wasn't designed to handle transparency. RGBA colors (unorm8_t) are converted to RGB (vec3) internally during the compression process, even in places where transparency would be easy (e.g. void blocks). I'm a little unsure why they do this- it was easier to write, maybe?

However, this repo from typed seems to fix the problem! It's pretty much a drag and drop replacement for the astc/ folder (though it's in CPP instead of CC and you do have to change some #ifdefs). Simply enable alpha by adding a true parameter to the end of compress_texture and it should work.

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