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

Implement BC4 and BC5 compression #36

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

BlueCube3310
Copy link
Contributor

This change adds support for compressing/decompressing BC4 and BC5 textures. By adding --ronly or --rgonly to the argument list with --dxtc the texture will be compressed as either BC4 or BC5.

Quality comparison:

Original BC4/BC5 DXT1 Diff (BC4/BC5 vs DXT1)
pavement_normal inrg inrgb indiff
pavement_r pvmt_r pvmt_rgb pvmt_diff

Application.cpp Outdated
@@ -44,6 +44,8 @@ void Usage()
fprintf( stderr, " --rgba enable RGBA in ETC2 mode (RGB is used by default)\n" );
fprintf( stderr, " --disable-heuristics disable heuristic selector of compression mode\n" );
fprintf( stderr, " --dxtc use DXT1/DXT5 compression\n" );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change these to BC1/BC3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

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

Successfully merging this pull request may close these issues.

2 participants