From 48d93b8e68aa24d559656df90c984eb3679de5e5 Mon Sep 17 00:00:00 2001 From: IceSentry Date: Wed, 21 Feb 2024 18:16:43 -0500 Subject: [PATCH] Make Globals visible in vertex shaders (#12032) # Objective - Globals are supposed to be available in vertex shader but that was mistakenly removed in 0.13 ## Solution - Configure the visibility of the globals correctly Fixes https://github.com/bevyengine/bevy/issues/12015 --- crates/bevy_pbr/src/render/mesh_view_bindings.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/mesh_view_bindings.rs b/crates/bevy_pbr/src/render/mesh_view_bindings.rs index 1551fca586358..b0a1dc768d2a7 100644 --- a/crates/bevy_pbr/src/render/mesh_view_bindings.rs +++ b/crates/bevy_pbr/src/render/mesh_view_bindings.rs @@ -250,7 +250,10 @@ fn layout_entries( ), ), // Globals - (9, uniform_buffer::(false)), + ( + 9, + uniform_buffer::(false).visibility(ShaderStages::VERTEX_FRAGMENT), + ), // Fog (10, uniform_buffer::(true)), // Light probes