bevy/crates/bevy_internal
François 6c479649bf enable Webgl2 optimisation in pbr under feature (#3291)
# Objective

- 3d examples fail to run in webgl2 because of unsupported texture formats or texture too large

## Solution

- switch to supported formats if a feature is enabled. I choose a feature instead of a build target to not conflict with a potential webgpu support

Very inspired by 6813b2edc5, and need #3290 to work.

I named the feature `webgl2`, but it's only needed if one want to use PBR in webgl2. Examples using only 2D already work.

Co-authored-by: François <8672791+mockersf@users.noreply.github.com>
2021-12-22 20:59:48 +00:00
..
src Fix doc warnings (#3339) 2021-12-18 00:09:23 +00:00
Cargo.toml enable Webgl2 optimisation in pbr under feature (#3291) 2021-12-22 20:59:48 +00:00