progress of the mentioned prototype with suport for different wegl libs can be found here:
https://github.com/jscad/OpenJSCAD.org/discussions/944

I have just made another step forward: mesh support (but with some quirks ATM)
I have some lighting to fix, and also babylonjs for some weird rason uses left handed system (this adds a bit of complexity to the worker to support it properly)

Also when switching viewers, if they are different orioentation currently I need to run the script again manually to get properly oriented triangles

https://user-images.githubusercontent.com/2480762/162638934-7a945625-420d-4041-98fc-5735fcc34c6b.mp4