Commit Graph

3231 Commits

Author SHA1 Message Date
afca781b2f Update to the most recent wgpu 2021-04-22 18:59:45 -04:00
7c502c26bf Switch to index rendering for most quad-like things 2021-04-22 18:59:45 -04:00
1f8fde077a Small fixes to gpu profiling 2021-04-22 18:59:45 -04:00
2f1695e00c Update to the latest wgpu git 2021-04-22 18:59:45 -04:00
139b1f3d95 Implement toggleable gpu profiling that saves the timings from a recent frame with the screenshot key, rebase fixes 2021-04-22 18:59:45 -04:00
0b2702878b WIP gpu timer thing (not for squashing!) 2021-04-22 18:59:45 -04:00
4aa10a95e0 Update wgpu to fix segfault 2021-04-22 18:59:45 -04:00
672d4e0cdd Fix char select shadows by clearing shadow textures 2021-04-22 18:59:45 -04:00
85fa038796 Add setting for the PresentMode 2021-04-22 18:59:45 -04:00
6ebbbd408d fix nametag depth culling as well as a tweak to maybe make the main menu not flicker on intel iGPU 2021-04-22 18:59:45 -04:00
3b1ea02bc5 Fix lod alt texture filtering 2021-04-22 18:59:45 -04:00
85c7f5c9c9 Resolve validation errors with trying to use unsupported filtering modes 2021-04-22 18:59:45 -04:00
6228430002 Corrected shadow cull mode 2021-04-22 18:59:45 -04:00
a1ab844834 Update to latest wgpu git (around 0.7), temporarily disable shader validation due to naga bug, rebase fixes!! 2021-04-22 18:59:45 -04:00
09a25e3fc0 Remove wgpu patch/update wgpu, rebase fixes, remove use of deprecated
vek functions for left, right, up, down, forward_rh, forward_lh
2021-04-22 18:59:45 -04:00
d24498ad30 Comment out secondary backends 2021-04-22 18:59:44 -04:00
624183e3f3 Avoid extra set_pipeline calls 2021-04-22 18:59:44 -04:00
b2f94c1485 Properly rebind shadow textures when they are changed 2021-04-22 18:59:44 -04:00
5b73717237 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-04-22 18:59:44 -04:00
a91722208c Fix point shadows. 2021-04-22 18:59:44 -04:00
82b930f68b Fix directed shadows, mostly. 2021-04-22 18:59:44 -04:00
90b496b3b1 More frustration with shadows. 2021-04-22 18:59:44 -04:00
2e23def2c9 Various fixes for shadows. 2021-04-22 18:59:44 -04:00
2a748526fc Fix the shadow drawing code
Very poorly optimized
2021-04-22 18:59:44 -04:00
fed5823a74 Re enable the skybox rendering in char select 2021-04-22 18:59:44 -04:00
4b651d535f Fix the buffer slicing in the submodel
Fixes the void figures
2021-04-22 18:59:44 -04:00
732e0fa483 Re enable sprite rendering 2021-04-22 18:59:44 -04:00
1cf128311a Reenable non-player figure drawing 2021-04-22 18:59:44 -04:00
a723fc85ae Draw water 2021-04-22 18:59:44 -04:00
4e06da7de8 Fix clouds 2021-04-22 18:59:44 -04:00
0eccb2d2e6 Somewhat fix lod, prevent particles spamming new buffers when disabled 2021-04-22 18:59:44 -04:00
d7d415f23f No cube spam 2021-04-22 18:59:44 -04:00
beaf4a2402 Start lod, update wgpu to fix viewport count validation error 2021-04-22 18:59:43 -04:00
c943600274 Add skybox 2021-04-22 18:59:43 -04:00
8836e8bd49 Fix wrong color format in col light 2021-04-22 18:59:43 -04:00
f6c821ef3a Reenable terrain rendering
Refractor col lights
2021-04-22 18:59:43 -04:00
f8570e9c83 Fix the orientation of the rendering
Reenable the rendering of the player
2021-04-22 18:59:43 -04:00
6f60c1ca5c Pass format to particle pipeline 2021-04-22 18:59:43 -04:00
8063730872 Renable the figure and terrain drawing code (not working yet) 2021-04-22 18:59:43 -04:00
adb791229b Fix culling of postprocess/cloud triangles 2021-04-22 18:59:43 -04:00
fb5e763ce3 Particles compiles and runs (no visuals yet) 2021-04-22 18:59:43 -04:00
055556344b Remove the depth buffer from the Third drawer 2021-04-22 18:59:43 -04:00
a4eb6a3179 Shader fixes 2021-04-22 18:59:43 -04:00
551e899f18 Update dependencies 2021-04-22 18:59:43 -04:00
b3eab70fb2 Almost make clouds/postproccess run 2021-04-22 18:59:43 -04:00
c34afaa258 Render the UIs 2021-04-22 18:59:43 -04:00
7b86b0d236 Add generic Bound<T> type for grouping consts/other bindable things with bind groups 2021-04-22 18:59:43 -04:00
42770c2f89 Render Ui 2021-04-22 18:59:43 -04:00
03994495a8 Color! 2021-04-22 18:59:43 -04:00
6ce8acbea9 fixed validation errors when creating pipelines 2021-04-22 18:59:43 -04:00