3446 Commits

Author SHA1 Message Date
Ben Wallis
caa546cc45 Merge branch 'capucho/wgpu-outdated-swapchain' into 'master'
Rebuild swapchain on Outdate error

See merge request veloren/veloren!2376
2021-06-05 10:27:32 +00:00
João Capucho
a65650389e
Don't draw when window size is minimized 2021-06-04 23:37:33 +01:00
Ben Wallis
033f275a56 Merge branch 'hqurve/fix-lootscrller' into 'master'
Fixed loot scroller collisions and cleaned up previous changes

See merge request veloren/veloren!2358
2021-06-04 20:00:18 +00:00
João Capucho
70f3b1a9a2
Regenerate the swapchain if the frame is outdated 2021-06-04 20:37:39 +01:00
Sam
75f5c0543b Fmt and clippy from toolchain rebase. 2021-06-03 21:39:18 -05:00
jshipsey
a4d95fdd13 some animation 2021-06-03 21:39:17 -05:00
Sam
571599ff63 Fixed tests 2021-06-03 21:39:16 -05:00
Sam
1ebe6461d4 Added totem ability, totem ai, totem ability set, particles for totem abilities, and totem voxel model. 2021-06-03 21:39:15 -05:00
Sam
d0bfcabd1c First 3 abilities for tidal warrior functional. Added bubble particles. 2021-06-03 21:39:13 -05:00
Yusuf Bera Ertan
18c05cddfc
build(nix): add new dependencies to nix build and dev env for wgpu 2021-06-04 00:08:02 +03:00
Imbris
22199a9980 Switch to using block_on directly from futures-executor instead of the umbrella crate 2021-06-03 14:28:28 -04:00
Imbris
9dd7bcbd0d Properly calculate the necessary length of the index buffers for checks that ensure they are large enough 2021-06-03 00:45:11 -04:00
Imbris
7856c51320 Remove stabilized or_patterns feature 2021-06-03 00:10:07 -04:00
Imbris
6c61c9495e Enable since naga currently has issues translating our SPIRV -> metal 2021-06-03 00:10:07 -04:00
Imbris
b9a55961c5 Update wgpu, cleanup a bit of commented shader code, improve sprite LOD selection code 2021-06-03 00:10:06 -04:00
Imbris
6f280c650b Use expect to document potential panic when starting a new frame recording, fix clippy warning 2021-06-03 00:10:06 -04:00
Imbris
308cbbb998 Address various TODOs introduced in wgpu transition 2021-06-03 00:10:06 -04:00
Imbris
156888e965 address/remove TODOs, fix comment typos, enable wgpu/trace feature by default (So no recompile is needed to collect an API trace) 2021-06-03 00:10:06 -04:00
Joshua Yanovski
71e80faf33 Fix shadows for wgpu.
In the process, we also fix our n_e / f_e calculation to actually
compute plane intersections properly.
2021-06-03 00:10:06 -04:00
Avi Weinstock
75e4931cc3 Address MR 2253 review comments. 2021-06-03 00:10:06 -04:00
Avi Weinstock
a46b876437 Show hitbox cylinders based on actual ECS data, and add a settings toggle in voxygen for it. 2021-06-03 00:10:06 -04:00
Avi Weinstock
c34116a835 Implement a Debug pipeline for hitboxes and pathfinding lines.
- Implements mesh generation for cylinders and lines.
    - Implements an Id-allocator so that clients can mutate positions efficiently.
    - Is split into pipeline and scene modules.
    - Contains simple shaders that just pass through a position and color.
2021-06-03 00:10:06 -04:00
Imbris
7c761147a4 Use profling to get spans from wgpu, update wpgu & its deps for various
fixes
2021-06-03 00:10:06 -04:00
Imbris
94ace54aec Update wgpu to fix dx11 issue 2021-06-03 00:10:06 -04:00
Imbris
56623b97e0 Make models require a non-zero amount of vertices 2021-06-03 00:10:06 -04:00
Imbris
1c48052898 Make shadow vert shaders always contain their content but ensure they are never used when shadow maps are disabled, remove uneeded shadow frag shader 2021-06-03 00:10:06 -04:00
Imbris
c0be83c956 Remove commented out sprite code, including the code for getting verts for sprites with a texture rather than a storage buffer 2021-06-03 00:10:06 -04:00
Imbris
2d4e09e970 Remove uneeded commented out gfx rendering code 2021-06-03 00:10:06 -04:00
Imbris
466ec852ee Update wgpu to latest version and improve error formating 2021-06-03 00:10:06 -04:00
Imbris
bea2b78ba1 Fix all clippy warnings 2021-06-03 00:10:05 -04:00
Imbris
1f6c2eb12f Remove unused waves texture 2021-06-03 00:10:05 -04:00
Imbris
2e139d9bcb Fix most of the cargo check warnings 2021-06-03 00:10:05 -04:00
Imbris
2527ec674a Replace default wgpu error handler with one that includes the error in the panic message 2021-06-03 00:10:05 -04:00
Imbris
00df6a12ae Remove unused shadow bind group from the cloud pipeline 2021-06-03 00:10:05 -04:00
Imbris
5d54d57d50 Require WGPU_TRACE_DIR to be set manually instead of having a default value 2021-06-03 00:10:05 -04:00
Imbris
6d490518f9 Wait for ingame pipelines to build before entering char select, show pipeline rebuilding status text in the graphics settings tab 2021-06-03 00:10:04 -04:00
Imbris
6f0de83ee7 wgpu rebase fix: crossbeam -> crossbeam_channel 2021-06-03 00:09:55 -04:00
Imbris
327bc1ef5c Fix bug in sprite pipeline creation & misc other pipeline creation fixes 2021-06-02 23:59:51 -04:00
Imbris
cfd60b3762 Make Drawer work with background pipeline creation 2021-06-02 23:59:51 -04:00
Imbris
699cf9e197 Move pipeline creation into the background, still needs Drawer modications and UI to display status 2021-06-02 23:59:51 -04:00
Imbris
8680da40c1 Fix wrong intermediate target texture format 2021-06-02 23:59:51 -04:00
Imbris
596553d375 Comment out lod depth tweaks not designed for reverse depth, convert waves image to rgba before constructing a texture, misc fix after rebase 2021-06-02 23:59:50 -04:00
Imbris
8eb0804d4f Clear textures that will be partially written to work around Dx12 bug on AMD 2021-06-02 23:59:50 -04:00
Imbris
8f7e83926f Update wgpu to get gfx-hal update that fixes the dx12 depth cube view construction issue 2021-06-02 23:59:50 -04:00
Imbris
d611d9efbc Add env vars to set wgpu backend and wgpu api trace save dir (api trace still needs feature to be set ofc) 2021-06-02 23:59:50 -04:00
Imbris
6a9c8612e7 Update wgpu 2021-06-02 23:59:50 -04:00
João Capucho
f6eab55754 Fix panic on zero sized scissor 2021-06-02 23:59:50 -04:00
João Capucho
59c607714f Fix resizing using the wrong value 2021-06-02 23:59:50 -04:00
Imbris
30c7131667 Allow setting env var to only use the vulkan backend, deactivate profiling if the feature is not available 2021-06-02 23:59:50 -04:00
Imbris
f927dfb1c6 Implement screenshots 2021-06-02 23:59:50 -04:00