This repository has been archived by the owner on Mar 18, 2019. It is now read-only.
Vertically flipped DXT1 and DXT5 textures to keep original files orienta... #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I did a while ago some changes regarding DXTn textures orientation. Apparently (from my tests) the extracted dds files are vertically flipped compared the the original image files used to build theasset bundle. So I added a few lines to flip vertically DXT1 and DXT5 data without decompressing it.
There is another little thing regarding file names sanitization, I allowed the "-" character as it is a common character in textures file names and replacing it by "_" was breaking textures references in extracted materials (I could fix missing references on my side but I think it is better the not alter too much original file names and as you see it is a very small change.
Bellow are the changes that should interest you.