Commit Graph

81 Commits

Author SHA1 Message Date
Robin KAY fffb75b20c Initial port to Bevy 0.13. 2024-02-16 00:30:51 +00:00
Robin KAY 1dce5a267e Add interpolation 0.3 compatability feature. 2024-02-08 20:55:05 +00:00
Robin KAY 70847d7d5d Change outlines to respect InheritedVisibility. 2024-02-02 01:20:58 +00:00
Robin KAY bf2385f167 Fix bind group errors when prepasses are enabled. 2023-11-22 00:57:07 +00:00
Robin KAY ddb40d0c2a
Port to Bevy 0.12 (#25) 2023-11-08 22:29:32 +00:00
Robin KAY 6dcf604b93 Remove unnecessary clone. 2023-11-08 22:17:19 +00:00
Robin KAY 600f58ba73 Change outline and stencil properties to be inheritable. 2023-11-08 21:40:19 +00:00
Robin KAY 613e1ddde7 Fix noisy depth values in flat mode. 2023-11-02 00:33:09 +00:00
Robin KAY fd8e98f986 Remove unused extraction of OutlineStencil. 2023-10-27 21:49:14 +01:00
Robin KAY 7ccd52ee83 Remove unused vertex attributes. 2023-10-27 21:47:56 +01:00
Robin KAY 0351b05978 Fix Z-fighting in the flying_objects example. 2023-10-27 21:44:09 +01:00
Robin KAY d968670960 Fix formatting. 2023-10-21 01:17:19 +01:00
Robin KAY 84ae12953f
Do not panic if specialising mesh pipeline fails (#23)
---------

Co-authored-by: Arjo Chakravarty <arjoc@google.com>
2023-08-14 04:54:47 +01:00
Robin KAY ae5c331450
Port to Bevy 0.11 (#22)
---------

Co-authored-by: mramirez <ramirezmike2@gmail.com>
Co-authored-by: Zain Azam <zainyusufazam@gmail.com>
2023-08-14 01:51:43 +01:00
Robin KAY 35032e05a3 Fix Z-fighting between overlay and stencil with OpenGL wgpu back-end. 2023-05-30 21:51:13 +01:00
Robin KAY 4a8d4409fe Change out_zw to out_z since w doesn't change. 2023-05-26 21:27:45 +01:00
Robin KAY ac9ae75cef Fix various failures to propagate ComputedOutlineDepth. 2023-05-17 18:43:12 +01:00
Robin KAY 1d5cff5eda Fix panic if DepthMode hasn't propagated (yet). 2023-04-10 22:19:20 +01:00
Robin KAY 3f304437cd Change normal generator to use vertex normals if available, but keep face weighting. 2023-04-07 00:47:02 +01:00
Robin KAY 5d49ad8f3c Fix panic if mesh has unused vertex indices. 2023-03-31 20:09:54 +01:00
Robin KAY a55c60fd21 Change outline normal generator to use face normals. 2023-03-19 12:34:14 +00:00
Robin KAY 79285311f2 Add enabled flag to OutlineStencil. 2023-03-16 22:03:38 +00:00
Robin KAY 2a4184ab32 Fix outline depth being propagated onto children without InheritOutlineDepth. 2023-03-16 01:27:06 +00:00
Robin KAY d84e476c78 Port to Bevy 0.10. 2023-03-10 18:43:13 +00:00
Robin KAY 12fa2e5448 Fix regression in SetOutlineDepth::Real. 2023-03-08 08:14:41 +00:00
Robin KAY 0df3735906 Fix bad clipping of triangles behind the camera. 2023-03-07 23:46:58 +00:00
Robin KAY 5f06c32bcf Fix texture format error when HDR is enabled. 2023-03-05 20:42:10 +00:00
Robin KAY 78081558bb Change flat flag to enum. 2023-02-21 21:12:44 +00:00
Robin KAY 6896b5ae73 Fix not initialising ComputedOutlineDepth when first Added. 2023-02-21 21:05:30 +00:00
Grey 3f2deedb93
Always recompute outline depth when SetOutlineDepth is changed (#10).
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
2023-02-20 23:20:21 +00:00
Robin KAY 2d900248f0 Change to use RenderLayers if OutlineRenderLayers not present. 2023-01-14 23:51:44 +00:00
Robin KAY ae1fe650c6 Merge pull request #9 from mxgrey/outline_render_layers_v0.2
Introduce OutlineRenderLayers for masking which views an outline appears on.
2023-01-14 02:36:03 +00:00
Robin KAY c70c3d3b76 Fix interpolation of enabled flag. 2023-01-05 02:58:10 +00:00
Robin KAY 7b5650fbdb Add non-flat depth mode. 2023-01-03 02:06:45 +00:00
Robin KAY 10f2d985d3 Add Lerp trait impls for outline volume and stencil types. 2022-12-31 04:57:13 +00:00
Robin KAY fd5cfd0a1c Fix whitespace. 2022-11-22 22:37:29 +00:00
Robin KAY 055a5115dd Update top-level docs. 2022-11-22 21:30:54 +00:00
Robin KAY d41057f905 Restrict more internal symbols to crate visibility. 2022-11-22 20:20:45 +00:00
Robin KAY 4a292ca6bc Rename Outline component to OutlineVolume. 2022-11-22 19:11:36 +00:00
Robin KAY 5ae478efe1 Port to Bevy 0.9. 2022-11-22 00:05:47 +00:00
Robin KAY 8afc8f9d14 Add SetOutlineDepth component. 2022-11-21 23:46:36 +00:00
Robin KAY a792cca681 Fix phase item sorting to use ComputedOutlineDepth. 2022-11-21 23:44:52 +00:00
Robin KAY 59d867bf1f Add offset field to OutlineStencil and offset_zero flag to pipeline key. 2022-11-21 20:32:25 +00:00
Robin KAY 5898d7c17c Change mesh pipeline key to a bitfield. 2022-11-20 21:40:22 +00:00
Robin KAY 0f9c52cc38 Fix animated_fox example. 2022-11-18 21:43:15 +00:00
Robin KAY e86c6d6c60 Unify stencil and volume shaders. 2022-11-18 00:50:52 +00:00
Robin KAY 95b3a5b298 Fix leftover use of the align16 feature. 2022-11-17 22:17:04 +00:00
Robin KAY 55dd3a07a8 Rename OutlinePlane to OutlineDepth. 2022-11-17 22:15:13 +00:00
Robin KAY e1c845c434 Add ComputedOutlinePlane and an example. 2022-11-17 00:25:54 +00:00
Robin KAY 6781476bf0 Remove errant debug println. 2022-10-13 01:06:04 +01:00