Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

How do get DXT1 alpha dither? #284

Open
tomspilman opened this issue Mar 19, 2018 · 0 comments
Open

How do get DXT1 alpha dither? #284

tomspilman opened this issue Mar 19, 2018 · 0 comments

Comments

@tomspilman
Copy link
Contributor

tomspilman commented Mar 19, 2018

Hey @castano .

I am trying to get the same alpha dither behavior as i've seen in other DXT1 compressors:

image
(progressive blocks of alpha at 90%,80%,70%,60%,etc...)

I tried using the SetQuantization API with alphaDither, but it doesn't seem to be supported for DXT:

    if (compressionOptions.enableAlphaDithering) {
        if (compressionOptions.format == Format_RGB) {
            img.quantize(3, compressionOptions.asize, true, true);
        }
    }

https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/Context.cpp#L531

Is this something that was overlooked and needs a fix?

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

No branches or pull requests

1 participant