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

Scale filter preserving alpha coverage #486

Open
lexaknyazev opened this issue Oct 4, 2021 · 1 comment
Open

Scale filter preserving alpha coverage #486

lexaknyazev opened this issue Oct 4, 2021 · 1 comment

Comments

@lexaknyazev
Copy link
Member

To properly support textures used for alpha-cutoff workflows, the mip scaler has to support an algorithm that preserves alpha coverage.

See http://the-witness.net/news/2010/09/computing-alpha-mipmaps/ for the implementation details.

@MarkCallow
Copy link
Collaborator

MarkCallow commented Oct 7, 2021

Also see https://bgolus.medium.com/anti-aliased-alpha-test-the-esoteric-alpha-to-coverage-8b177335ae4f for a good explanation of alpha to coverage and the background behind this request. This article also has example shader code to scale the alpha by mip level which essentially does the same as is being requested be done by this RFE during mip generation.

That said, libktx currently uses the resampler from Basis Universal so a request should be opened there too.

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