mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
11a3b77811
commit
a513493dcc
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue