-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add binned 2d/3d Wireframe render phase #18587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
d3b24b8
00880a1
1bf7e81
d929af2
f8a6e93
d993961
e217027
e00fbb1
a28ad68
dabd22d
f4dc838
19b9e24
10ce11f
97ceb4b
d04f038
99cffc3
65e898e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| #import bevy_pbr::forward_io::VertexOutput | ||
|
|
||
| struct WireframeMaterial { | ||
| color: vec4<f32>, | ||
| }; | ||
| struct PushConstants { | ||
| color: vec4<f32> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI push constants aren't available on WebGPU. Idk how we feel about requiring them for wireframes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wireframes require the |
||
| } | ||
|
|
||
| var<push_constant> push_constants: PushConstants; | ||
|
|
||
| @group(2) @binding(0) | ||
| var<uniform> material: WireframeMaterial; | ||
| @fragment | ||
| fn fragment(in: VertexOutput) -> @location(0) vec4<f32> { | ||
| return material.color; | ||
| return push_constants.color; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.