Skip to content

Commit

Permalink
bevy_pbr2: Make depth.wgsl Mesh 'transform' naming consistent with pb…
Browse files Browse the repository at this point in the history
…r.wgsl
  • Loading branch information
superdump committed Aug 26, 2021
1 parent b41e903 commit f0457e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelined/bevy_pbr2/src/render/depth.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var view: View;

[[block]]
struct Mesh {
transform: mat4x4<f32>;
model: mat4x4<f32>;
};
[[group(1), binding(0)]]
var mesh: Mesh;
Expand All @@ -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<f32>(vertex.position, 1.0);
out.clip_position = view.view_proj * mesh.model * vec4<f32>(vertex.position, 1.0);
return out;
}

0 comments on commit f0457e0

Please sign in to comment.