Conversation
|
At this point I think we should break gizmos 2d_example and 3d_example in a few parts, the examples are getting pretty cramped |
I agree but I think this should wait until both #12252 and this are merged so we can have one "fancy_gizmos" example. |
pablo-lua
left a comment
There was a problem hiding this comment.
All good. The problem with examples being too big can be in another PR.
BD103
left a comment
There was a problem hiding this comment.
Looks good and tested, though take my review with a grain of salt. I have little experience with gizmos or shaders. 😅
Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
|
Thank you to everyone involved with the authoring or reviewing of this PR! This work is relatively important and needs release notes! Head over to bevyengine/bevy-website#1290 if you'd like to help out. |
Objective
Solution
GizmoLineStyleand uses it in eachGizmoConfigto configure the style of the line.line_widthof the corresponding line.Changelog
GizmoLineStyletobevy_gizmosline_style: GizmoLineStyleattribute toGizmoConfiglines.wgslshader and the pipelines accordingly.Migration Guide
GizmoConfigmust now include theline_styleattributeAdditional information
Some pretty pictures :)
This is the 3d_gizmos example with/without


line_perspective:And the 2d example:
