forked from 1b-agent/opencadstudio-upstream
fix(render): bind wireframe material
This commit is contained in:
1 parent
e23dde8eae
commit
f2d7a7ffd8
1 file changed
+2
@@ -3046,6 +3046,7 @@ impl Pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pass.set_pipeline(&self.mesh_wireframe_pipeline);
|
pass.set_pipeline(&self.mesh_wireframe_pipeline);
|
||||||
|
pass.set_bind_group(1, &self.mesh_default_material_bind_group, &[]);
|
||||||
for (mesh_command, c) in self.active_mesh_chunks_indexed() {
|
for (mesh_command, c) in self.active_mesh_chunks_indexed() {
|
||||||
if !c.visible {
|
if !c.visible {
|
||||||
continue;
|
continue;
|
||||||
@@ -3104,6 +3105,7 @@ impl Pipeline {
|
|||||||
} else {
|
} else {
|
||||||
if mesh_wireframe {
|
if mesh_wireframe {
|
||||||
pass.set_pipeline(&self.mesh_wireframe_pipeline);
|
pass.set_pipeline(&self.mesh_wireframe_pipeline);
|
||||||
|
pass.set_bind_group(1, &self.mesh_default_material_bind_group, &[]);
|
||||||
for (mesh_command, c) in self.active_mesh_chunks_indexed() {
|
for (mesh_command, c) in self.active_mesh_chunks_indexed() {
|
||||||
if !c.visible {
|
if !c.visible {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user