Skip to content

Commit

Permalink
Make Globals visible in vertex shaders (#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 #12015
  • Loading branch information
IceSentry authored and mockersf committed Feb 27, 2024
1 parent f268c69 commit 48d93b8
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 48d93b8

Please sign in to comment.