bevy
bevy copied to clipboard
Sync up bevy_sprite and bevy_ui shader View struct
Objective
- Similar to #5512 , the
View
struct definition in the shaders inbevy_sprite
andbevy_ui
were out of sync with the rust-sideViewUniform
. Onlyview_proj
was being used and is the first member and as those shaders are not customisable it makes little difference in practice, unlike forMesh2d
.
Solution
- Sync shader
View
struct definition inbevy_sprite
andbevy_ui
with the correct definition that matchesViewUniform
Longer-term, I think we should define a shader import for this in bevy_render
and use it everywhere. But doing this for now as a minimal fix in case it were to be pulled into a 0.8.1. I don't think this one would be necessary but perhaps @cart would rather bundle the update.
couldn't they be imports?
couldn't they be imports?
See above. :D
Yeah I think it makes sense to do this one first for 0.8.1
bors r+
Pull request successfully merged into main.
Build succeeded: