Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential out-of-bounds access in pbr_functions.wgsl (bevyengine#…
…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. ```
- Loading branch information