From f3a23fd569aa0a263b4f25b291fd10cb4b513131 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Tue, 7 Feb 2023 09:14:15 +0000 Subject: [PATCH] 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` --- assets/shaders/array_texture.wgsl | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/shaders/array_texture.wgsl b/assets/shaders/array_texture.wgsl index 0e68cb48d4cc5..e7618ff97045f 100644 --- a/assets/shaders/array_texture.wgsl +++ b/assets/shaders/array_texture.wgsl @@ -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;