Commit Graph

8655 Commits

Author SHA1 Message Date
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
ad7f1fe18f Reenable terrain rendering
Refractor col lights
2021-06-02 23:59:48 -04:00
9a5bc12d3c Fix the orientation of the rendering
Reenable the rendering of the player
2021-06-02 23:59:47 -04:00
9de927fb2f Pass format to particle pipeline 2021-06-02 23:59:47 -04:00
9924d15dc8 Renable the figure and terrain drawing code (not working yet) 2021-06-02 23:59:47 -04:00
52660e9262 Fix culling of postprocess/cloud triangles 2021-06-02 23:59:47 -04:00
cd46a4bd85 Particles compiles and runs (no visuals yet) 2021-06-02 23:59:47 -04:00
6530fe99db Remove the depth buffer from the Third drawer 2021-06-02 23:59:47 -04:00
85296c1bb5 Shader fixes 2021-06-02 23:59:47 -04:00
9379c4d1dc Update dependencies 2021-06-02 23:59:47 -04:00
dd15e7e7d9 Almost make clouds/postproccess run 2021-06-02 23:59:47 -04:00
5af8c24fa0 Render the UIs 2021-06-02 23:59:47 -04:00