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

ETC2 crunched support #11

Closed
K0lb3 opened this issue Mar 25, 2019 · 2 comments
Closed

ETC2 crunched support #11

K0lb3 opened this issue Mar 25, 2019 · 2 comments

Comments

@K0lb3
Copy link
Contributor

K0lb3 commented Mar 25, 2019

Atm decrunch doesn't support crunched versions of ETC2.

Addition to decrunch.pyx Format:
ETC1 = 10
ETC2 = 11
ETC2A = 12
ETC1S = 13
ETC2AS = 14

The /crunch code from Unity-Technologies/crunch results in a build error.

@K0lb3
Copy link
Contributor Author

K0lb3 commented Mar 26, 2019

I replaced some parts of the old crn_decomp.h with parts of the new one from Unity-Technology and also replaced the other 2 files with those from Unity-Tech.

The result looks fine,
it can decode crunched ETC2 now.

crunch.zip

It also works in concert with Unitypack/Adds ability to decompress ETC and ETC2 images pull request.

@jleclanche
Copy link
Member

Implemented in 6a21030

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

No branches or pull requests

2 participants