johanhelsing / bevy_smud

Sdf 2d shape renderer for Bevy
Other
143 stars 10 forks source link

Shaders that make use of `time.seconds_since_startup` don't work on wasm #13

Closed johanhelsing closed 2 years ago

johanhelsing commented 2 years ago

Currently if sdfs make use of time, they will not show on wasm.

The time uniform code is based on the animate_shader example in the bevy repo, which has the same problem (so solution should also be the same).

https://github.com/bevyengine/bevy/issues/4813