Skip to content

Commit

Permalink
fix wireframe after MeshUniform size reduction (#9505)
Browse files Browse the repository at this point in the history
# Objective

- Wireframe currently don't display since #9416
- There is an error
```
2023-08-20T10:06:54.190347Z ERROR bevy_render::render_resource::pipeline_cache: failed to process shader:
error: no definition in scope for identifier: 'vertex_no_morph'
   ┌─ crates/bevy_pbr/src/render/wireframe.wgsl:26:94
   │
26 │     let model = bevy_pbr::mesh_functions::get_model_matrix(vertex_no_morph.instance_index);
   │                                                                                              ^^^^^^^^^^^^^^^ unknown identifier
   │
   = no definition in scope for identifier: 'vertex_no_morph'
```

## Solution

- Use the correct identifier
  • Loading branch information
mockersf authored Aug 21, 2023
1 parent ee0f2a7 commit bc50682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/render/wireframe.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc50682

Please sign in to comment.