From f6003c35536bbe5a28cf81ecf973916e6aea8ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 18 Oct 2023 03:19:28 +0200 Subject: [PATCH] array_texture example: use new name of pbr function (#10168) # Objective - After #7820 example `array_texture` doesn't display anything ## Solution - Use the new name of the function in the shader --- assets/shaders/array_texture.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/shaders/array_texture.wgsl b/assets/shaders/array_texture.wgsl index 05b0b855313e6..dd55487a697eb 100644 --- a/assets/shaders/array_texture.wgsl +++ b/assets/shaders/array_texture.wgsl @@ -46,5 +46,5 @@ fn fragment( ); pbr_input.V = fns::calculate_view(mesh.world_position, pbr_input.is_orthographic); - return tone_mapping(fns::pbr(pbr_input), view.color_grading); + return tone_mapping(fns::apply_pbr_lighting(pbr_input), view.color_grading); }