webgl-texture-utils icon indicating copy to clipboard operation
webgl-texture-utils copied to clipboard

DXT3/5 decoders

Open flowtsohg opened this issue 11 years ago • 1 comments

I am not sure if this repository has any relevance anymore, but it was a great help for me to get me started on DDS DXT images.

I added DXT3/5 decoders, so in case you want them, I am uploading them here. I also added the color0 <= color1 condition in DXT1 decoding that you didn't put for some reason.

https://gist.github.com/flowtsohg/11306221

Optimizations are welcome :)

flowtsohg avatar Apr 25 '14 23:04 flowtsohg

Hi, I made my own DXT1 / 3 / 5 / 10 decoders, too :) https://github.com/photopea/UTEX.js

32 MB 8192 x 8192 px texture is parsed in 900 ms! :)

And there is an encoder (compressor), too.

photopea avatar Nov 19 '17 18:11 photopea