deanm / plask

Plask is a multimedia programming environment.
www.plask.org
Other
443 stars 38 forks source link

Add SRGB_ALPHA #46

Closed vorg closed 9 years ago

vorg commented 9 years ago

In webgl_constants there are

WEBGL_CONSTANTS_EACH(SRGB, 0x8C40)
WEBGL_CONSTANTS_EACH(SRGB8, 0x8C41)
WEBGL_CONSTANTS_EACH(SRGB8_ALPHA8, 0x8C43)

but this one is missing

SRGB_ALPHA  = SRGB_ALPHA_EXT = 0x8C42

Any particular reason why?

deanm commented 9 years ago

https://www.khronos.org/registry/webgl/specs/latest/2.0/webgl2.idl

Missing how? I don't see it in the webgl 2.0 spec, if it's in an extension then we need to see what's involved and support that extension

vorg commented 9 years ago

Weird. Its here https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/ and they say i has been promoted to WebGL 2.0 core..hmm.

deanm commented 9 years ago

"Written against the WebGL API 1.0 specification. Promoted to core in WebGL API 2.0 specification."

Do they mean that the spec was written as an extension to 1.0, and then was "promoted" to being also an extension to 2.0, not that it became part of 2.0 itself? Doesn't seem so clear

deanm commented 9 years ago

b9f8c40a15db76125ad848a08f3f34163b835d41

vorg commented 9 years ago

Thanks!