Commit Graph

67 Commits

Author SHA1 Message Date
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
19d193584a Fix shader warning and tidy up code. 2022-08-08 19:25:33 +01:00
Robin KAY
5c5c4dc5d9 Add optional vertex attribute for outline normals. 2022-08-07 22:16:39 +01:00
Robin KAY
3e8c7e69a2 Fix redundant renormalisation of vertex attribute. 2022-08-06 02:16:44 +01:00
Robin KAY
0e7c1e80eb Disable stencil pass if there are no outlines. 2022-08-06 01:41:17 +01:00
Robin KAY
2832f3047f Fix Clippy lints. 2022-08-05 09:38:50 +01:00
Robin KAY
2aa76309dd Move outline rendering to dedicated pass. 2022-08-05 02:40:04 +01:00
Robin KAY
c971bddb1f Bump version to 0.2. 2022-08-05 02:38:44 +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