{"action":"opened","issue":{"url":"https://api.github.com/repos/WebGLSamples/WebGL2Samples/issues/60","labels_url":"https://api.github.com/repos/WebGLSamples/WebGL2Samples/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/WebGLSamples/WebGL2Samples/issues/60/comments","events_url":"https://api.github.com/repos/WebGLSamples/WebGL2Samples/issues/60/events","html_url":"https://github.com/WebGLSamples/WebGL2Samples/issues/60","id":127343787,"number":60,"title":"Notes for ETC2/EAC sample","user":{"login":"shrekshao","id":5031596,"avatar_url":"https://avatars.githubusercontent.com/u/5031596?v=3","gravatar_id":"","url":"https://api.github.com/users/shrekshao","html_url":"https://github.com/shrekshao","followers_url":"https://api.github.com/users/shrekshao/followers","following_url":"https://api.github.com/users/shrekshao/following{/other_user}","gists_url":"https://api.github.com/users/shrekshao/gists{/gist_id}","starred_url":"https://api.github.com/users/shrekshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrekshao/subscriptions","organizations_url":"https://api.github.com/users/shrekshao/orgs","repos_url":"https://api.github.com/users/shrekshao/repos","events_url":"https://api.github.com/users/shrekshao/events{/privacy}","received_events_url":"https://api.github.com/users/shrekshao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T01:31:20Z","updated_at":"2016-01-19T01:31:20Z","closed_at":null,"body":"* 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](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/#4). \r\n* 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. \r\n* In this sample, I hard-coded an offset of 68 to drag the image data from the arraybuffer. Improvement can be made later. "}}