We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9e50e7 commit 9086e60Copy full SHA for 9086e60
crates/bevy_pbr/src/render/wireframe.wgsl
@@ -50,7 +50,9 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
50
#ifdef SKINNED
51
let model = bevy_pbr::skinning::skin_model(vertex.joint_indexes, vertex.joint_weights);
52
#else
53
- let model = get_model_matrix(vertex.instance_index);
+ // Use vertex_no_morph.instance_index instead of vertex.instance_index to work around a wgpu dx12 bug.
54
+ // See https://github.com/gfx-rs/naga/issues/2416 .
55
+ let model = get_model_matrix(vertex_no_morph.instance_index);
56
#endif
57
58
var out: VertexOutput;
0 commit comments