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
f268c69402
commit
48d93b8e68
@ -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 New Issue
Block a user