HearthSim / decrunch

Python wrapper around Crunch DXTc decompressor
https://hearthsim.info
zlib License
14 stars 23 forks source link

ETC2 crunched support #11

Closed K0lb3 closed 5 years ago

K0lb3 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Implemented in 6a21030f86fda86dd7c8bf51cfbab49a23487973