adding comment: we need to use sRGB vs. linear internal formats here

This commit is contained in:
Richard Geldreich
2026-02-23 15:57:38 -05:00
parent 55a58e0a6c
commit 13cc670a20

View File

@@ -809,6 +809,7 @@
setCanvasSize(alignedWidth, alignedHeight);
// Now create the WebGL texture object.
// TODO: Update to support sRGB vs. linear ASTC textures here.
if ((format === BASIS_FORMAT.cTFASTC_4x4) || (format === BASIS_FORMAT.cTFASTC_HDR_4x4_RGBA))
tex = renderer.createCompressedTexture(dst, alignedWidth, alignedHeight, COMPRESSED_RGBA_ASTC_4x4_KHR);