Skip to content
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

Use webGL 2 #4

Open
SallySoul opened this issue Jan 21, 2019 · 1 comment
Open

Use webGL 2 #4

SallySoul opened this issue Jan 21, 2019 · 1 comment

Comments

@SallySoul
Copy link
Owner

I would like for the web-client to use WebGL2. I have a branch where this is more-or-less dropped in. However, Webkit (and therefore Safari) does not yet support WebGL2, and I would very much like to support Safari. This is a tradeoff though.

The main reason I would like to support WebGL2 is to make use of 32-bit integer indices into buffers. 16-bit indices really don't leave me much room. So, we'll see how long I can make do with the 16-bit limit and how much work it will take to split assets and such.

@SallySoul
Copy link
Owner Author

SallySoul commented Feb 5, 2019

As it turns out, another thing to look forward to is instancing. This seems to be only possible through a webGL extension right now: ANGLE_instanced_arrays. This will be a huge win for the point and line drawing systems.

I may explore using that extension in the meantime though, it looks like it has a high adoption rate:
https://webglstats.com/webgl/extension/ANGLE_instanced_arrays

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant