bevy/crates/bevy_pbr
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
..
src Fix sampling of diffuse env map texture with non-uniform control flow (#10276) 2023-10-27 01:35:19 +00:00
Cargo.toml update shader imports (#10180) 2023-10-21 11:51:58 +00:00