From 6752c9c59b3b81168ea6607767cbb519e5127976 Mon Sep 17 00:00:00 2001 From: Azervu Date: Sun, 31 Jul 2022 19:10:53 +0000 Subject: [PATCH] Fix View by adding missing fields present in ViewUniform (#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 --- crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl b/crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl index 8f90ebdfdc..0890ea7e56 100644 --- a/crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl +++ b/crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl @@ -2,9 +2,11 @@ struct View { view_proj: mat4x4, + inverse_view_proj: mat4x4, view: mat4x4, inverse_view: mat4x4, projection: mat4x4, + inverse_projection: mat4x4, world_position: vec3, width: f32, height: f32,