mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
Fix array_texture
example (#7543)
# Objective - Shader error cause by a missing import. - `pbr_functions.wgsl` was missing an import for the `ambient_light()` function, as `array_texture` doesn't import it. - Closes #7542. ## Solution - Add`#import bevy_pbr::pbr_ambient` into `array_texture`
This commit is contained in:
parent
ea2ecd4f75
commit
f3a23fd569
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#import bevy_pbr::shadows
|
||||
#import bevy_pbr::fog
|
||||
#import bevy_pbr::pbr_functions
|
||||
#import bevy_pbr::pbr_ambient
|
||||
|
||||
@group(1) @binding(0)
|
||||
var my_array_texture: texture_2d_array<f32>;
|
||||
|
|
Loading…
Reference in a new issue