Cosmic should be able to target web with just plain JS. No wasm. See #19 for wasm.
This can be a lot of work since there isn't a nice way to convert zig to js. Why just JS? In many ways it can be faster than WASM on the web since WASM doesn't have native interop with things we care about in the browser runtime like the gpu. threejs and bablyonjs are all just JS.
WebGL2 will be the graphics target until WebGPU becomes a thing.
This work involves providing an API for all graphics related things. Things that don't make sense on the web will be a nop.
Cosmic should be able to target web with just plain JS. No wasm. See #19 for wasm.
This can be a lot of work since there isn't a nice way to convert zig to js. Why just JS? In many ways it can be faster than WASM on the web since WASM doesn't have native interop with things we care about in the browser runtime like the gpu. threejs and bablyonjs are all just JS.
WebGL2 will be the graphics target until WebGPU becomes a thing. This work involves providing an API for all graphics related things. Things that don't make sense on the web will be a nop.