<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>There is also a <font color="#000000"><span style="caret-color: rgb(0, 0, 0);">pixelStorei parameter where you can decide whether color space conversion should take place. It has two options </span></font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">BROWSER_DEFAULT_WEBGL and </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">NONE.</span></div><div><br></div><div>gl .pixelStorei (gl .UNPACK_COLORSPACE_CONVERSION_WEBGL, colorspace ? gl .BROWSER_DEFAULT_WEBGL : gl .NONE);</div><div><br></div><div>See also <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei#pixel_storage_parameters">https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei#pixel_storage_parameters</a></div><br><div>
<div>Holger Seelig</div><div>Leipzig, Germany</div><div>holger.seelig@yahoo.de</div><div><br></div><br class="Apple-interchange-newline">

</div>
<div><br><blockquote type="cite"><div>Am 26.02.2023 um 16:16 schrieb Andreas Plesch <andreasplesch@gmail.com>:</div><br class="Apple-interchange-newline"><div><div>Hi Holger,<br><br>Thanks. Such a field also could be of type SFBool but it might be<br>better to align with the DOM method. Unfortunately, the DOM spec. for<br>createImageBitmap uses lower case enums for the values.<br><br>-Andreas<br><br>On Sun, Feb 26, 2023 at 7:44 AM Holger Seelig <holger.seelig@yahoo.de> wrote:<br><blockquote type="cite"><br>I also stumbled across this test, and it seems that createImageBitmap can handle this case decently. ColorSpaceConversion is what you normally always want, but in the case of glTF you need an option to turn it off, which could be done with a new field 'colorSpaceConversion' as you describe.<br><br>Andreas please note that â€šenum' values should always be capitalized.<br><br>Best regards,<br>Holger<br><br>---<br>Holger Seelig<br>Leipzig, Germany<br>holger.seelig@yahoo.de<br><br><br><br>Am 25.02.2023 um 20:04 schrieb Andreas Plesch <andreasplesch@gmail.com>:<br><br>createImageBitmap<br><br><br></blockquote><br><br>-- <br>Andreas Plesch<br>Waltham, MA 02453<br></div></div></blockquote></div><br></body></html>