You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
etc2/eac compressed image can be in different file extension (ktx, pkm), each has a different "header data". For example, ktx file format has a header data of 68 bytes details.
To properly handle this, we may need a so-called "texture utils". Extract the data correctly from images in different format, which can be another project.
In this sample, I hard-coded an offset of 68 to drag the image data from the arraybuffer. Improvement can be made later.