Imbris
94f9995bff
Update wgpu, cleanup a bit of commented shader code, improve sprite LOD selection code
2021-05-30 11:51:06 -04:00
Imbris
3c86d49f5b
Use expect to document potential panic when starting a new frame recording, fix clippy warning
2021-05-30 11:51:06 -04:00
Imbris
77d4ea9703
Address various TODOs introduced in wgpu transition
2021-05-30 11:51:06 -04:00
Imbris
aa47b960b1
address/remove TODOs, fix comment typos, enable wgpu/trace feature by default (So no recompile is needed to collect an API trace)
2021-05-30 11:51:06 -04:00
Joshua Yanovski
8a5a59bcb7
Fix shadows for wgpu.
...
In the process, we also fix our n_e / f_e calculation to actually
compute plane intersections properly.
2021-05-30 11:51:06 -04:00
Avi Weinstock
92546780a2
Address MR 2253 review comments.
2021-05-30 11:51:06 -04:00
Avi Weinstock
2a5e66400f
Show hitbox cylinders based on actual ECS data, and add a settings toggle in voxygen for it.
2021-05-30 11:51:06 -04:00
Avi Weinstock
364890653f
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-05-30 11:50:25 -04:00
Imbris
254c2fb868
Use profling to get spans from wgpu, update wpgu & its deps for various
...
fixes
2021-05-30 11:49:41 -04:00
Imbris
f869065c9d
Update wgpu to fix dx11 issue
2021-05-30 11:49:41 -04:00
Imbris
b61793142e
Make models require a non-zero amount of vertices
2021-05-30 11:49:41 -04:00
Imbris
2c074ac52b
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-05-30 11:49:41 -04:00
Imbris
df90dab3da
Remove commented out sprite code, including the code for getting verts for sprites with a texture rather than a storage buffer
2021-05-30 11:49:41 -04:00
Imbris
f44937a9a6
Remove uneeded commented out gfx rendering code
2021-05-30 11:49:41 -04:00
Imbris
1a565ccc3c
Update wgpu to latest version and improve error formating
2021-05-30 11:49:41 -04:00
Imbris
ea6985e565
Fix all clippy warnings
2021-05-30 11:49:41 -04:00
Imbris
af1962f11c
Remove unused waves texture
2021-05-30 11:49:41 -04:00
Imbris
ebe063442a
Fix most of the cargo check warnings
2021-05-30 11:49:41 -04:00
Imbris
e4fc93035b
Replace default wgpu error handler with one that includes the error in the panic message
2021-05-30 11:49:41 -04:00
Imbris
5b3dbca297
Remove unused shadow bind group from the cloud pipeline
2021-05-30 11:49:41 -04:00
Imbris
d032563780
Require WGPU_TRACE_DIR to be set manually instead of having a default value
2021-05-30 11:49:41 -04:00
Imbris
a93be322b5
Wait for ingame pipelines to build before entering char select, show pipeline rebuilding status text in the graphics settings tab
2021-05-30 11:49:41 -04:00
Imbris
65946b6f4b
Fix bug in sprite pipeline creation & misc other pipeline creation fixes
2021-05-30 11:49:41 -04:00
Imbris
604ea8ff18
Make Drawer work with background pipeline creation
2021-05-30 11:49:41 -04:00
Imbris
71a561fc70
Move pipeline creation into the background, still needs Drawer modications and UI to display status
2021-05-30 11:49:41 -04:00
Imbris
5b00b28e04
Fix wrong intermediate target texture format
2021-05-30 11:49:41 -04:00
Imbris
62db5e5a69
Comment out lod depth tweaks not designed for reverse depth, convert waves image to rgba before constructing a texture, misc fix after rebase
2021-05-30 11:49:41 -04:00
Imbris
13d61eaf9f
Clear textures that will be partially written to work around Dx12 bug on AMD
2021-05-30 11:49:41 -04:00
Imbris
8e87047d9e
Update wgpu to get gfx-hal update that fixes the dx12 depth cube view construction issue
2021-05-30 11:49:41 -04:00
Imbris
7343286a3c
Add env vars to set wgpu backend and wgpu api trace save dir (api trace still needs feature to be set ofc)
2021-05-30 11:49:41 -04:00
Imbris
97359042db
Update wgpu
2021-05-30 11:49:41 -04:00
João Capucho
4c73433ecb
Fix panic on zero sized scissor
2021-05-30 11:49:41 -04:00
João Capucho
4c51dd0147
Fix resizing using the wrong value
2021-05-30 11:49:41 -04:00
Imbris
cbddf50a41
Allow setting env var to only use the vulkan backend, deactivate profiling if the feature is not available
2021-05-30 11:49:41 -04:00
Imbris
c58e8e9eb8
Disable CI that does not need to run for builds
2021-05-30 11:49:41 -04:00
Imbris
d7b651451b
Implement screenshots
2021-05-30 11:49:41 -04:00
Imbris
0ad51204ec
Update wgpu-profiler, smol rebase fix
2021-05-30 11:49:41 -04:00
Imbris
e31353df88
Display gpu timing info in the HUD when enabled
2021-05-30 11:49:41 -04:00
Imbris
2de13f3a87
Try out using storage buffer for sprite vertices
2021-05-30 11:49:41 -04:00
Imbris
bed1596985
Fix bugs with sprite rendering
2021-05-30 11:49:41 -04:00
Imbris
0933a87d84
Fix sprite vertex lookup, normalize sprite
...
normals in vert shader
2021-05-30 11:49:41 -04:00
Imbris
8c3ede3b39
Almost implement instance merging for sprites (validation error), rebase
...
fix
2021-05-30 11:49:41 -04:00
Imbris
49f03bd325
Start sprite refactor
2021-05-30 11:49:41 -04:00
João Capucho
ef96ce68e6
Fix winit returning wrong window size
...
It seems like waiting for wgpu to create a instance is enough to make
winit return the correct window size
2021-05-30 11:49:41 -04:00
João Capucho
e40702c083
Fix scissor panic
...
Removes the Scale::physical_resolution method as it could become
desynced from the renderer resolution causing the panic
2021-05-30 11:49:41 -04:00
João Capucho
3da110628a
Update to the most recent wgpu
2021-05-30 11:49:40 -04:00
Imbris
a1d8265935
Switch to index rendering for most quad-like things
2021-05-30 11:49:40 -04:00
Imbris
0d7e96e849
Small fixes to gpu profiling
2021-05-30 11:49:40 -04:00
Imbris
9d076d3a89
Update to the latest wgpu git
2021-05-30 11:49:40 -04:00
Imbris
d2e2580df4
Implement toggleable gpu profiling that saves the timings from a recent frame with the screenshot key, rebase fixes
2021-05-30 11:49:40 -04:00