SallySoul / tacit

An Implicit Equation Plotter
1 stars 0 forks source link

Use webGL 2 #4

Open SallySoul opened 5 years ago

SallySoul commented 5 years ago

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 commented 5 years ago

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