Commit Graph

8400 Commits

Author SHA1 Message Date
e204a58be2 Small fixes to gpu profiling 2021-06-02 23:59:49 -04:00
22d67d4cc1 Update to the latest wgpu git 2021-06-02 23:59:49 -04:00
7a67ce87e7 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
8c21023500 WIP gpu timer thing (not for squashing!) 2021-06-02 23:59:49 -04:00
0a60fb2d72 Update wgpu to fix segfault 2021-06-02 23:59:49 -04:00
f01d59c1df Fix char select shadows by clearing shadow textures 2021-06-02 23:59:49 -04:00
e1af485e5f Add setting for the PresentMode 2021-06-02 23:59:49 -04:00
2f69c41b00 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
261fd24dfd Fix lod alt texture filtering 2021-06-02 23:59:49 -04:00
6f6167cd90 Resolve validation errors with trying to use unsupported filtering modes 2021-06-02 23:59:49 -04:00
ae6c5a5c54 Corrected shadow cull mode 2021-06-02 23:59:49 -04:00
843529c7bb 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
c532f50e64 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
fc5e8cb18d Comment out secondary backends 2021-06-02 23:59:49 -04:00
fce14fbaa9 Avoid extra set_pipeline calls 2021-06-02 23:59:48 -04:00
7012e16706 Properly rebind shadow textures when they are changed 2021-06-02 23:59:48 -04:00
93568754a0 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
adf3f83b4b Fix point shadows. 2021-06-02 23:59:48 -04:00
363c55c521 Fix directed shadows, mostly. 2021-06-02 23:59:48 -04:00
a1fac487e4 Suppress wgpu_core::device info logging 2021-06-02 23:59:48 -04:00
868293a802 More frustration with shadows. 2021-06-02 23:59:48 -04:00
c97a42fdb7 Various fixes for shadows. 2021-06-02 23:59:48 -04:00
23f1144fe2 Fix the shadow drawing code
Very poorly optimized
2021-06-02 23:59:48 -04:00
7389f8893d Re enable the skybox rendering in char select 2021-06-02 23:59:48 -04:00
672ac0dbf3 Fix the buffer slicing in the submodel
Fixes the void figures
2021-06-02 23:59:48 -04:00
b6c37be299 Re enable sprite rendering 2021-06-02 23:59:48 -04:00
c22dc6697c Reenable non-player figure drawing 2021-06-02 23:59:48 -04:00
fe6cf0396f Draw water 2021-06-02 23:59:48 -04:00
97bed5752b Fix clouds 2021-06-02 23:59:48 -04:00
f30588ea94 Fix flipping in post-processing stages and precompute the uv in those in the vert shader 2021-06-02 23:59:48 -04:00
bae0310cc7 Somewhat fix lod, prevent particles spamming new buffers when disabled 2021-06-02 23:59:48 -04:00
99d74147e5 No cube spam 2021-06-02 23:59:48 -04:00
aa17132f9d Start lod, update wgpu to fix viewport count validation error 2021-06-02 23:59:48 -04:00
553c1c18a9 Add skybox 2021-06-02 23:59:48 -04:00
14f683d403 Fix wrong color format in col light 2021-06-02 23:59:48 -04:00
1083d04c73 Reenable terrain rendering
Refractor col lights
2021-06-02 23:59:48 -04:00
0db2a35955 Fix the orientation of the rendering
Reenable the rendering of the player
2021-06-02 23:59:47 -04:00
b8d560a882 Pass format to particle pipeline 2021-06-02 23:59:47 -04:00
1668e834f8 Renable the figure and terrain drawing code (not working yet) 2021-06-02 23:59:47 -04:00
7e0fe83335 Fix culling of postprocess/cloud triangles 2021-06-02 23:59:47 -04:00
b3ca2f6870 Particles compiles and runs (no visuals yet) 2021-06-02 23:59:47 -04:00
4c83e19c83 Remove the depth buffer from the Third drawer 2021-06-02 23:59:47 -04:00
2c7d49b69f Shader fixes 2021-06-02 23:59:47 -04:00
a97ba961a4 Update dependencies 2021-06-02 23:59:47 -04:00
da0423ab2a Almost make clouds/postproccess run 2021-06-02 23:59:47 -04:00
1e2d956106 Render the UIs 2021-06-02 23:59:47 -04:00
628d9391d3 Add generic Bound<T> type for grouping consts/other bindable things with bind groups 2021-06-02 23:59:47 -04:00
124d69d7ad Render Ui 2021-06-02 23:59:45 -04:00
f7efbd8bc7 Color! 2021-06-02 23:56:43 -04:00
97ca278d89 fixed validation errors when creating pipelines 2021-06-02 23:56:43 -04:00