Skip to content

Commit

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

# 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 authored and inodentry committed Aug 8, 2022
1 parent 21e2eaa commit f1dfaeb
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

0 comments on commit f1dfaeb

Please sign in to comment.