Rename transparent_phase to opaque_phase in wireframe.rs (#4639)
# Objective - Meshes are queued in opaque phase instead of transparent phase when drawing wireframes. - There is a name mismatch. ## Solution - Rename `transparent_phase` to `opaque_phase` in `wireframe.rs`.
This commit is contained in:
parent
7d21ca3744
commit
e49542b026
@ -121,7 +121,7 @@ fn queue_wireframes(
|
|||||||
.get_id::<DrawWireframes>()
|
.get_id::<DrawWireframes>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let msaa_key = MeshPipelineKey::from_msaa_samples(msaa.samples);
|
let msaa_key = MeshPipelineKey::from_msaa_samples(msaa.samples);
|
||||||
for (view, mut transparent_phase) in views.iter_mut() {
|
for (view, mut opaque_phase) in views.iter_mut() {
|
||||||
let view_matrix = view.transform.compute_matrix();
|
let view_matrix = view.transform.compute_matrix();
|
||||||
let view_row_2 = view_matrix.row(2);
|
let view_row_2 = view_matrix.row(2);
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ fn queue_wireframes(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
transparent_phase.add(Opaque3d {
|
opaque_phase.add(Opaque3d {
|
||||||
entity,
|
entity,
|
||||||
pipeline: pipeline_id,
|
pipeline: pipeline_id,
|
||||||
draw_function: draw_custom,
|
draw_function: draw_custom,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user