thi-ng / umbrella

⛱ Broadly scoped ecosystem & mono-repository of 199 TypeScript projects (and ~180 examples) for general purpose, functional, data driven development
https://thi.ng
Apache License 2.0
3.36k stars 149 forks source link

[webgl2] A separate package? #337

Open stwind opened 2 years ago

stwind commented 2 years ago

It is increasingly hard to use a single uniform compatible declaration for both WebGL 1 and 2 features (extensions, textures, UBO etc.). While WebGL2 achieving pervasive support now, would it be nice to have standalone package for WebGL2 only?

postspectacular commented 2 years ago

Yeah, the moment has finally come for WebGL2. Instead of separating v2 I'd propose to extract the legacy v1 stuff into own package... What are your thoughts?

stwind commented 2 years ago

Yeah extracting legacy stuffs to its own package seems to be a better idea.

I am not quite sure how to do that yet, since there will be quite some overlaps/similarities between them. And as the "new" webgl package keep evolving to be more WebGL2, some common parts will almost eventually break for the legacy webgl1 package.

So I think the problem will be like how much or what should be kept in a common package, if any? Obviously the gl constants is the safest one to keep as common.