Trico-Everfire / VTF_Edit_Revitalized

VTF Edit Revitalized is a modern recreation of VTF Edit. Multi-Platform and rewritten in QT.
MIT License
9 stars 1 forks source link

All images, regardless if they have an alpha channel or not, are treated as if they do #16

Open jayrickaby opened 2 weeks ago

jayrickaby commented 2 weeks ago

When an image is imported, whether it has an alpha channel or not, is treated as if it does in fact have an alpha channel. I've tested only on .tga and .png, both without an alpha channel, and the issue is apparent there.

Trico-Everfire commented 1 week ago

I thought that I made it determine the alpha by itself through stb. But I just looked and sure enough, I set it to force 4 channels. This should be fixed in next push.

Trico-Everfire commented 1 week ago

Funnily enough, it was correctly set for .hdr files specifically (because they use a slightly different import function), why I didn't for normal images is beyond me :sob: