mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ fn queue_wireframes(
|
|||
.get_id::<DrawWireframes>()
|
||||
.unwrap();
|
||||
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_row_2 = view_matrix.row(2);
|
||||
|
||||
|
@ -143,7 +143,7 @@ fn queue_wireframes(
|
|||
return;
|
||||
}
|
||||
};
|
||||
transparent_phase.add(Opaque3d {
|
||||
opaque_phase.add(Opaque3d {
|
||||
entity,
|
||||
pipeline: pipeline_id,
|
||||
draw_function: draw_custom,
|
||||
|
|
Loading…
Add table
Reference in a new issue