gl icon indicating copy to clipboard operation
gl copied to clipboard

Plans for WebGL 2

Open ignishub opened this issue 8 years ago • 3 comments

Is there any plans for WebGL 2?

ignishub avatar Feb 11 '17 01:02 ignishub

I don't have immediate plans to work on this, but goxjs/gl could support it one day (probably not very soon).

WebGL 2.0 is very new and there are some browsers that don't support it yet. See http://caniuse.com/#feat=webgl2.

image

So it'd have to be an optional backend, with a fallback.

How does its API compare? I'm not familiar with it yet. Is it purely additive, or are there incompatible changes?

To make this happen, I expect the very first step would be to create pure WebGL 2.0 bindings (e.g., similar to https://github.com/gopherjs/webgl, but target WebGL 2.0 instead of 1.0). After that's done, we can consider upgrading goxjs/gl browser support.

dmitshur avatar Feb 11 '17 05:02 dmitshur

How does its API compare? I'm not familiar with it yet. Is it purely additive, or are there incompatible changes?

I've looked at https://www.khronos.org/registry/webgl/specs/latest/2.0/#4.1. It's mostly an addition to the WebGL 1.0 API, with some minor backwards incompatible changes.

WebGL 1.0 mapped to OpenGL ES 2.0, while WebGL 2.0 maps to OpenGL ES 3.0.

dmitshur avatar Feb 11 '17 05:02 dmitshur

Thanks for your answer! =)

ignishub avatar Feb 28 '17 07:02 ignishub