[Merged by Bors] - update wireframe rendering to new renderer#3193
[Merged by Bors] - update wireframe rendering to new renderer#3193jakobhellermann wants to merge 2 commits intobevyengine:mainfrom
Conversation
| descriptor.vertex.shader = self.shader.clone_weak(); | ||
| descriptor.fragment.as_mut().unwrap().shader = self.shader.clone_weak(); | ||
| descriptor.primitive.polygon_mode = PolygonMode::Line; | ||
| descriptor.depth_stencil.as_mut().unwrap().bias.slope_scale = 1.0; |
|
This isn't actually usable right now because the |
|
I would recommend having wireframe in |
# Objective The new renderer does not support any options yet for wgpu. These are needed for example for rendering wireframes (see #3193). ## Solution I've ported WgpuOptions to bevy_render2. The defaults match the defaults that were used before this PR (meaning, some specific options when target_arch = wasm32). Additionally, I removed `Auto` from WgpuBackends and added `Primary`. The default will use primary or GL based on the target_arch.
|
@jakobhellermann should this be updated now that #3282 has been merged, exposing |
The PR is unblocked in that regard, but I'm not sure it can reasonably do anything with the The old implementation doesn't solve this and requires the user to enable the |
|
The other remaining issue is whether this should live in |
|
Yeah I agree that |
|
bors r+ |
Updates the wireframe rendering initialliy implemented in #562 to the new renderer. It lives in `bevy_pbr2` instead of `bevy_render2` because that way it can reuse the `MeshPipeline`.


Updates the wireframe rendering initialliy implemented in #562 to the new renderer.
It lives in
bevy_pbr2instead ofbevy_render2because that way it can reuse theMeshPipeline.