KhronosGroup / WebGL

The Official Khronos WebGL Repository
Other
2.64k stars 669 forks source link

WebGL specification should specify what UNPACK_COLORSPACE_CONVERSION_WEBGL = BROWSER_DEFAULT_WEBGL means #3350

Open kkinnunen-apple opened 2 years ago

kkinnunen-apple commented 2 years ago

WebGL specification should specify what UNPACK_COLORSPACE_CONVERSION_WEBGL = BROWSER_DEFAULT_WEBGL means

This is the de-facto used mode for texture uploads. This should be a deterministic algorithm. Somewhere it should say what the algorithm is. This should be done regardless of whether all the browsers match it for all content types today.

The tests could test in best-effort manner regarding different content types.

kkinnunen-apple commented 2 years ago

Related issues:

kkinnunen-apple commented 2 years ago

If I understand correctly, Context2D specifies analogous issue by the means of concept of color space? https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-color-space

kdashg commented 2 years ago

We should spec that it converts to sRGB colorspace.