-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement missing WebGL functionality #38
Comments
It looks like my chrome supports: ANGLE_instanced_arrays A bunch of these should just be supported by the fact that Plask is using desktop OpenGL. Anything specific you want me to look at first? As a side note, I am still going to look at hooking up the ANGLE shader translator, because with the whole ES2 / ES3 glsl changes, etc, will probably need to have shader rewriting... |
commit a0b7ef1
|
Currently i'm using WEBGL_depth_texture |
The annoying thing from my perspective is that getExtension is supposed to return a new object (which I supposed needs the gl context bound) for just the extension methods and constants. This is just a lot of little wrapper objects to create and I find it a bit cumbersome. I will try to just add the extension methods on the main gl object and return that from getExtension. It will work in the sense that the methods and constants you expect to be there will be there, but everything else will be there too, so hopefully that doesn't cause any problems. |
Sounds good. On Tue, Apr 21, 2015 at 9:33 AM, Dean McNamee [email protected]
Marcin Ignac |
commit 8bde40a
|
commit 26482e6
commit d27362d
|
A lot of these extensions are just adding things that are also added in WebGL 2.0. So I would think the right thing to do is check for the WebGL 2.0 functionality first, and use that instead of the extension. For example ANGLE_instanced_arrays and OES_vertex_array_object. |
Native (WebGL 2.0 way) OES_vertex_array_object works 👍🏻 |
And that's as adventurous as you've gotten? |
I've been using transform feedback, seems to work (with caveats as in the commit logs) |
This is more of a todo list for me. Will do pull requests.
gl.getSupportedExtensions() -> []
gl.getExtension(name) -> null
gl.drawingBufferWidth -> this.width
gl.drawingBufferHeight -> this.height
The text was updated successfully, but these errors were encountered: