Commit Graph

8866 Commits

Author SHA1 Message Date
f927dfb1c6 Implement screenshots 2021-06-02 23:59:50 -04:00
e399ad23e2 Update wgpu-profiler, smol rebase fix 2021-06-02 23:59:50 -04:00
27131dc670 Change docker tags to a wpu specific tag 2021-06-02 23:59:50 -04:00
497c11de32 wgpu branch rebase fixes 2021-06-02 23:59:50 -04:00
42a113c0d4 Display gpu timing info in the HUD when enabled 2021-06-02 23:59:50 -04:00
12294dd700 Try out using storage buffer for sprite vertices 2021-06-02 23:59:50 -04:00
667deea01e Fix bugs with sprite rendering 2021-06-02 23:59:50 -04:00
0b523e27a6 Fix sprite vertex lookup, normalize sprite
normals in vert shader
2021-06-02 23:59:50 -04:00
9a06d03127 Almost implement instance merging for sprites (validation error), rebase
fix
2021-06-02 23:59:50 -04:00
b8d3735728 Start sprite refactor 2021-06-02 23:59:49 -04:00
f565e433fd 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-06-02 23:59:49 -04:00
8fbebc11e2 Fix scissor panic
Removes the Scale::physical_resolution method as it could become
desynced from the renderer resolution causing the panic
2021-06-02 23:59:49 -04:00
5e4aabd981 Update to the most recent wgpu 2021-06-02 23:59:49 -04:00
0e95057512 Fix texture sampling syntax 2021-06-02 23:59:49 -04:00
be9bee50fb Switch to index rendering for most quad-like things 2021-06-02 23:59:49 -04:00
2a1fafb299 Small fixes to gpu profiling 2021-06-02 23:59:49 -04:00
118487cee2 Update to the latest wgpu git 2021-06-02 23:59:49 -04:00
0ea17414a5 Implement toggleable gpu profiling that saves the timings from a recent frame with the screenshot key, rebase fixes 2021-06-02 23:59:49 -04:00
1b727ddba2 WIP gpu timer thing (not for squashing!) 2021-06-02 23:59:49 -04:00
63eb209294 Update wgpu to fix segfault 2021-06-02 23:59:49 -04:00
ed0e0ed8dd Fix char select shadows by clearing shadow textures 2021-06-02 23:59:49 -04:00
73eeff7121 Add setting for the PresentMode 2021-06-02 23:59:49 -04:00
f539edfa84 fix nametag depth culling as well as a tweak to maybe make the main menu not flicker on intel iGPU 2021-06-02 23:59:49 -04:00
9a1f23907d Fix lod alt texture filtering 2021-06-02 23:59:49 -04:00
d7ef3cb76c Resolve validation errors with trying to use unsupported filtering modes 2021-06-02 23:59:49 -04:00
41fbd8a7a1 Corrected shadow cull mode 2021-06-02 23:59:49 -04:00
4e452b1e5b Update to latest wgpu git (around 0.7), temporarily disable shader validation due to naga bug, rebase fixes!! 2021-06-02 23:59:49 -04:00
847c3bffa5 Remove wgpu patch/update wgpu, rebase fixes, remove use of deprecated
vek functions for left, right, up, down, forward_rh, forward_lh
2021-06-02 23:59:49 -04:00
8f862b6e04 Comment out secondary backends 2021-06-02 23:59:49 -04:00
87fef25058 Avoid extra set_pipeline calls 2021-06-02 23:59:48 -04:00
652caee86d Properly rebind shadow textures when they are changed 2021-06-02 23:59:48 -04:00
26e51b5514 Inverse depth planes.
Also added a function that has extensive details about what the
projection options mean, and set our near plane much closer (0.25 to
0.0625) and far plane much farther (100000.25 to 524288.0625).  In the
future we may completely remove the far plane (opting for an infinite
one) and may possibly improve accuracy elsewhere using analysis of other
floating point values.
2021-06-02 23:59:48 -04:00
ba9a9c099a Fix point shadows. 2021-06-02 23:59:48 -04:00
c63683bde9 Fix directed shadows, mostly. 2021-06-02 23:59:48 -04:00
8612a237eb Suppress wgpu_core::device info logging 2021-06-02 23:59:48 -04:00
b035b5a86a More frustration with shadows. 2021-06-02 23:59:48 -04:00
ae17b7e296 Various fixes for shadows. 2021-06-02 23:59:48 -04:00
7ce375907c Fix the shadow drawing code
Very poorly optimized
2021-06-02 23:59:48 -04:00
409e1daab6 Re enable the skybox rendering in char select 2021-06-02 23:59:48 -04:00
7dda94fb21 Fix the buffer slicing in the submodel
Fixes the void figures
2021-06-02 23:59:48 -04:00
6ecc51004e Re enable sprite rendering 2021-06-02 23:59:48 -04:00
6860313d9d Reenable non-player figure drawing 2021-06-02 23:59:48 -04:00
46eeedeaf7 Draw water 2021-06-02 23:59:48 -04:00
6fff5177b0 Fix clouds 2021-06-02 23:59:48 -04:00
ee03f6656b Fix flipping in post-processing stages and precompute the uv in those in the vert shader 2021-06-02 23:59:48 -04:00
6f9bc075d0 Somewhat fix lod, prevent particles spamming new buffers when disabled 2021-06-02 23:59:48 -04:00
2b36aa6b60 No cube spam 2021-06-02 23:59:48 -04:00
d4f55bcbd2 Start lod, update wgpu to fix viewport count validation error 2021-06-02 23:59:48 -04:00
c51a167eeb Add skybox 2021-06-02 23:59:48 -04:00
c6e415bc7d Fix wrong color format in col light 2021-06-02 23:59:48 -04:00