From f0457e0b4fcab3f048199173fc57456cc83f2ff6 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Thu, 26 Aug 2021 11:55:37 +0200 Subject: [PATCH] bevy_pbr2: Make depth.wgsl Mesh 'transform' naming consistent with pbr.wgsl --- pipelined/bevy_pbr2/src/render/depth.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelined/bevy_pbr2/src/render/depth.wgsl b/pipelined/bevy_pbr2/src/render/depth.wgsl index 9313118d16f1da..b8bb0eec239481 100644 --- a/pipelined/bevy_pbr2/src/render/depth.wgsl +++ b/pipelined/bevy_pbr2/src/render/depth.wgsl @@ -9,7 +9,7 @@ var view: View; [[block]] struct Mesh { - transform: mat4x4; + model: mat4x4; }; [[group(1), binding(0)]] var mesh: Mesh; @@ -25,6 +25,6 @@ struct VertexOutput { [[stage(vertex)]] fn vertex(vertex: Vertex) -> VertexOutput { var out: VertexOutput; - out.clip_position = view.view_proj * mesh.transform * vec4(vertex.position, 1.0); + out.clip_position = view.view_proj * mesh.model * vec4(vertex.position, 1.0); return out; }