Enable alpha dithering when using DXT3.
Update timing message.
This commit is contained in:
parent
384f74ba39
commit
18a3abf794
@ -470,6 +470,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
nvtt::CompressionOptions compressionOptions;
|
nvtt::CompressionOptions compressionOptions;
|
||||||
compressionOptions.setFormat(format);
|
compressionOptions.setFormat(format);
|
||||||
|
|
||||||
|
if (format == nvtt::Format_BC2) {
|
||||||
|
// Dither alpha when using BC2.
|
||||||
|
compressionOptions.setQuantization(false, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (format == nvtt::Format_RGBA)
|
if (format == nvtt::Format_RGBA)
|
||||||
{
|
{
|
||||||
@ -546,8 +551,9 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
timer.stop();
|
||||||
|
|
||||||
printf("\rtime taken: %.3f seconds\n", float(timer.elapsed()) / 1000.0f);
|
printf("\rtime taken: %.3f seconds\n", timer.elapsed());
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user