bevyengine / bevyengine/bevy

Volumetric fog broken on WASM

Open
#14,414 5 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Web O-WebGL2 S-Blocked
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

Release: 0.14.0

## Relevant system information

- OS: Linux/X11
- Browser: Firefox and Chrome
- `AdapterInfo { name: "NVIDIA GeForce GTX 980, or similar", vendor: 4318, device: 0, device_type: Other, driver: "WebGL", driver_info: "2.0", backend: Gl }`

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](https://github.com/user-attachments/assets/dab0d14c-78a9-4bba-942f-771d7301b9b7)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the volumetric fog example in Firefox and Chrome on WASM, then inspect the reported glow-0.13.1 web_sys.rs:3184:9 failure and the example's rendering setup. Compare the failing multisample behavior with the example's expected configuration. Done means the example renders without the console panic in the reported browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.