bevy/crates/bevy_pbr
UkoeHB 2ee69807b1
Fix potential out-of-bounds access in pbr_functions.wgsl (#12585)
# Objective

- Fix a potential out-of-bounds access in the `pbr_functions.wgsl`
shader.

## Solution

- Correctly compute the `GpuLights::directional_lights` array length.

## Comments

I think this solves this comment in the code, but need someone to test
it:
```rust
//NOTE: When running bevy on Adreno GPU chipsets in WebGL, any value above 1 will result in a crash
// when loading the wgsl "pbr_functions.wgsl" in the function apply_fog.
```
2024-04-08 17:00:09 +00:00
..
src Fix potential out-of-bounds access in pbr_functions.wgsl (#12585) 2024-04-08 17:00:09 +00:00
Cargo.toml Relax BufferVec's type constraints (#12866) 2024-04-05 02:11:41 +00:00