Skip to content

Commit

Permalink
Fix View by adding missing fields present in ViewUniform (#5512)
Browse files Browse the repository at this point in the history
# Objective

View mesh2d_view_types.wgsl was missing a couple of fields present in bevy::render::ViewUniform, causing rendering issues for shaders using later fields.

## Solution
Solved by adding the fields in question
  • Loading branch information
Azervu committed Jul 31, 2022
1 parent 0149c41 commit 6752c9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

struct View {
view_proj: mat4x4<f32>,
inverse_view_proj: mat4x4<f32>,
view: mat4x4<f32>,
inverse_view: mat4x4<f32>,
projection: mat4x4<f32>,
inverse_projection: mat4x4<f32>,
world_position: vec3<f32>,
width: f32,
height: f32,
Expand Down

1 comment on commit 6752c9c

@superdump
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cart - I just discovered that this whole struct is wrong in bevy_sprite too!! Urgh.

Please sign in to comment.