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
This commit is contained in:
IceSentry 2024-02-21 18:16:43 -05:00 committed by GitHub
parent 11a3b77811
commit a513493dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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