Skip to content

Commit

Permalink
Make Globals visible in vertex shaders (bevyengine#12032)
Browse files Browse the repository at this point in the history
# 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 bevyengine#12015
  • Loading branch information
IceSentry authored and NiseVoid committed Feb 22, 2024
1 parent abb8c35 commit 91f7c75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_pbr/src/render/mesh_view_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ fn layout_entries(
),
),
// Globals
(9, uniform_buffer::<GlobalsUniform>(false)),
(
9,
uniform_buffer::<GlobalsUniform>(false).visibility(ShaderStages::VERTEX_FRAGMENT),
),
// Fog
(10, uniform_buffer::<GpuFog>(true)),
// Light probes
Expand Down

0 comments on commit 91f7c75

Please sign in to comment.