mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

Add support for bevy_prototype_lyon shaders #37

Closed alyti closed 3 years ago

alyti commented 3 years ago

Currently bevy_prototype_lyon plugin panics on web due to only having modern glsl shaders, I feel like it would make more sense to perform the pipeline swap for them here instead of duplicating the codebases for this functionality.

Related: https://github.com/Nilirad/bevy_prototype_lyon/issues/93

mrk-its commented 3 years ago

bevy_prototype_lyon should simply provide "#version 300 es" shaders when compiled to wasm32 and linked with bevy_webgl2. I see these shaders are very simple, so whole thing should be very strightforward.

alyti commented 3 years ago

I've made a pr on bevy_prototype_lyon side and hopefully will get it working there, thanks.