From 7b401d4afc4b382767042ce054305243e2a00f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 20 Aug 2023 12:20:43 +0200 Subject: [PATCH] use existing variable --- crates/bevy_pbr/src/render/wireframe.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/wireframe.wgsl b/crates/bevy_pbr/src/render/wireframe.wgsl index d44842b0b275c..4cb2b4cfa037e 100644 --- a/crates/bevy_pbr/src/render/wireframe.wgsl +++ b/crates/bevy_pbr/src/render/wireframe.wgsl @@ -23,7 +23,7 @@ fn vertex(vertex: Vertex) -> VertexOutput { #ifdef SKINNED let model = bevy_pbr::skinning::skin_model(vertex.joint_indexes, vertex.joint_weights); #else - let model = get_model_matrix(vertex_no_morph.instance_index); + let model = get_model_matrix(vertex.instance_index); #endif var out: VertexOutput;