bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.4k stars 3.59k forks source link

Volumetric fog broken on WASM #14414

Open Azorlogh opened 4 months ago

Azorlogh commented 4 months ago

Bevy version

Release: 0.14.0

Relevant system information

You should also consider testing the examples of our upstream dependencies to help isolate any setup-specific issue:

What you did

Opened the volumetric fog example at: https://bevyengine.org/examples/3d-rendering/volumetric-fog/

What went wrong

The example looks broken, and an error shows up in the console:

panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glow-0.13.1/src/web_sys.rs:3184:9:
Tex storage 2D multisample is not supported

Additional information

image

IceSentry commented 4 months ago

Sampling the depth texture is currently broken in wgpu in wasm with the webgl backend. The volumetric_fog feature should check for that and warn users, but it is expected to not work until the wgpu bug is resolved. It should work with the webgpu backend though.