Skip to content

Commit 6752c9c

Browse files
committed
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
1 parent 0149c41 commit 6752c9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_sprite/src/mesh2d/mesh2d_view_types.wgsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
struct View {
44
view_proj: mat4x4<f32>,
5+
inverse_view_proj: mat4x4<f32>,
56
view: mat4x4<f32>,
67
inverse_view: mat4x4<f32>,
78
projection: mat4x4<f32>,
9+
inverse_projection: mat4x4<f32>,
810
world_position: vec3<f32>,
911
width: f32,
1012
height: f32,

0 commit comments

Comments
 (0)