bevy/crates/bevy_pbr/src/environment_map
Robert Swain 0f54a82e3b
Fix sampling of diffuse env map texture with non-uniform control flow (#10276)
# Objective

- `deferred_rendering` and `load_gltf` fail in WebGPU builds due to
textureSample() being called on the diffuse environment map texture
after non-uniform control flow

## Solution

- The diffuse environment map texture only has one mip, so use
`textureSampleLevel(..., 0.0)` to sample that mip and not require UV
gradient calculation.
2023-10-27 01:35:19 +00:00
..
environment_map.wgsl Fix sampling of diffuse env map texture with non-uniform control flow (#10276) 2023-10-27 01:35:19 +00:00
mod.rs Use wildcard imports in bevy_pbr (#9847) 2023-10-25 08:40:55 +00:00