Commit Graph

40 Commits

Author SHA1 Message Date
Robin KAY 600f58ba73 Change outline and stencil properties to be inheritable. 2023-11-08 21:40:19 +00:00
Robin KAY fd8e98f986 Remove unused extraction of OutlineStencil. 2023-10-27 21:49:14 +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 79285311f2 Add enabled flag to OutlineStencil. 2023-03-16 22:03:38 +00:00
Robin KAY d84e476c78 Port to Bevy 0.10. 2023-03-10 18:43:13 +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 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 4a292ca6bc Rename Outline component to OutlineVolume. 2022-11-22 19:11:36 +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 e86c6d6c60 Unify stencil and volume shaders. 2022-11-18 00:50:52 +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 94e1742b44 Add AutoGenerateOutlineNormalsPluign. 2022-08-28 11:00:20 +01:00
Robin KAY f0d5a92fbd Fix compilation on platforms with 32-bit usize. 2022-08-23 21:42:34 +01:00
Robin KAY 3280318dd1 Merge pull request #3 from dollisgame/reduce-dependencies
Minimise bevy feature dependencies and add bevy_ui feature.
2022-08-22 00:47:18 +01:00
Robin KAY 558423f15d Fix typo. 2022-08-10 21:35:49 +01:00
Robin KAY 1609736ba2 Add constant to expose outline pass node name. 2022-08-10 21:16:26 +01:00
Robin KAY a66e7f99d3 Fix bad derive allows inserting OutlineBundle as a component. 2022-08-10 20:11:27 +01:00
Robin KAY cb9966da79 Fix outlines causing UI to disappear when MSAA is enabled. 2022-08-10 01:34:50 +01:00
Robin KAY 4996c9d108 Fix trailing whitespace. 2022-08-09 01:49:20 +01:00
Robin KAY c5e5c8e98f Add crate level doc comment. 2022-08-09 01:41:33 +01:00
Robin KAY a05529928f Revise comment about outline normals. 2022-08-09 00:52:52 +01:00
Robin KAY 5736faf0c1 Add comment about outline normals. 2022-08-08 23:56:50 +01:00
Robin KAY ce228d1c2d Add OutlineBundle. 2022-08-08 22:53:27 +01:00
Robin KAY 75dcc9077c Add visible flag to Outline component. 2022-08-08 22:40:38 +01:00
Robin KAY 3dd9c4c367 Change generate_outline_normals() not to if they equal regular normals. 2022-08-08 19:27:52 +01:00
Robin KAY 5c5c4dc5d9 Add optional vertex attribute for outline normals. 2022-08-07 22:16:39 +01:00
Robin KAY 2aa76309dd Move outline rendering to dedicated pass. 2022-08-05 02:40:04 +01:00
Robin KAY 4627eaa093 Port to Bevy 0.8. 2022-08-01 22:10:53 +01:00
Robin KAY e06fb383a3 Add comment to use of nextafterf. 2022-06-14 20:26:07 +01:00
Robin KAY 824e4bc51f Fix clippy lint and bad formatting. 2022-06-14 20:25:46 +01:00
Robin KAY 448b61fc4e Change GpuViewSize from component to resource. 2022-06-14 07:46:26 +01:00
Robin KAY a960850611 Pass logical view size to outline shader. 2022-06-14 02:29:12 +01:00
Robin KAY e13eef50cb Improve documentation slightly. 2022-06-13 23:23:35 +01:00
Robin KAY 95d093220e Make Outline a RenderAsset and pass parameters to shader. 2022-06-13 21:20:49 +01:00
Robin KAY 399602e26a Initial commit. 2022-06-10 22:29:51 +01:00