Commit Graph

7919 Commits

Author SHA1 Message Date
29667df57e Fix sprite vertex lookup, normalize sprite
normals in vert shader
2021-04-25 08:14:00 -04:00
b0b724031e Almost implement instance merging for sprites (validation error), rebase
fix
2021-04-25 08:14:00 -04:00
ae8a5e0ca2 Start sprite refactor 2021-04-25 08:14:00 -04:00
c683c35646 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-04-25 08:14:00 -04:00
71e2ee83aa Fix scissor panic
Removes the Scale::physical_resolution method as it could become
desynced from the renderer resolution causing the panic
2021-04-25 08:14:00 -04:00
2fef679623 Update to the most recent wgpu 2021-04-25 08:14:00 -04:00
522eea0a74 Fix texture sampling syntax 2021-04-25 08:14:00 -04:00
5de8099bd3 Switch to index rendering for most quad-like things 2021-04-25 08:14:00 -04:00
d1748884b9 Small fixes to gpu profiling 2021-04-25 08:14:00 -04:00
8d8ea55830 Update to the latest wgpu git 2021-04-25 08:14:00 -04:00
03acb63667 Implement toggleable gpu profiling that saves the timings from a recent frame with the screenshot key, rebase fixes 2021-04-25 08:14:00 -04:00
75731714e5 WIP gpu timer thing (not for squashing!) 2021-04-25 08:14:00 -04:00
af5d44e5bb Update wgpu to fix segfault 2021-04-25 08:14:00 -04:00
899efde23f Fix char select shadows by clearing shadow textures 2021-04-25 08:14:00 -04:00
923685d515 Add setting for the PresentMode 2021-04-25 08:14:00 -04:00
2035664d62 fix nametag depth culling as well as a tweak to maybe make the main menu not flicker on intel iGPU 2021-04-25 08:14:00 -04:00
482f9780d9 Fix lod alt texture filtering 2021-04-25 08:14:00 -04:00
ab4904b5c6 Resolve validation errors with trying to use unsupported filtering modes 2021-04-25 08:14:00 -04:00
3fb950f755 Corrected shadow cull mode 2021-04-25 08:14:00 -04:00
322a16bced Update to latest wgpu git (around 0.7), temporarily disable shader validation due to naga bug, rebase fixes!! 2021-04-25 08:14:00 -04:00
4f901986da Remove wgpu patch/update wgpu, rebase fixes, remove use of deprecated
vek functions for left, right, up, down, forward_rh, forward_lh
2021-04-25 08:14:00 -04:00
247fde8e8a Comment out secondary backends 2021-04-25 08:14:00 -04:00
b5e81ba9bb Avoid extra set_pipeline calls 2021-04-25 08:14:00 -04:00
9123d468a8 Properly rebind shadow textures when they are changed 2021-04-25 08:14:00 -04:00
73621a45b1 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-25 08:14:00 -04:00
e5ef8b31ca Fix point shadows. 2021-04-25 08:14:00 -04:00
46a4103890 Fix directed shadows, mostly. 2021-04-25 08:14:00 -04:00
64bd6af3d4 Suppress wgpu_core::device info logging 2021-04-25 08:14:00 -04:00
697f63455a More frustration with shadows. 2021-04-25 08:14:00 -04:00
7299746b1a Various fixes for shadows. 2021-04-25 08:14:00 -04:00
5317dc1af4 Fix the shadow drawing code
Very poorly optimized
2021-04-25 08:14:00 -04:00
201c90e056 Re enable the skybox rendering in char select 2021-04-25 08:14:00 -04:00
a0b7971585 Fix the buffer slicing in the submodel
Fixes the void figures
2021-04-25 08:14:00 -04:00
42c8e2fece Re enable sprite rendering 2021-04-25 08:14:00 -04:00
024818043c Reenable non-player figure drawing 2021-04-25 08:14:00 -04:00
3d48c6261f Draw water 2021-04-25 08:14:00 -04:00
68a64a1fb8 Fix clouds 2021-04-25 08:14:00 -04:00
b41f5d5d9e Fix flipping in post-processing stages and precompute the uv in those in the vert shader 2021-04-25 08:14:00 -04:00
6c8978a513 Somewhat fix lod, prevent particles spamming new buffers when disabled 2021-04-25 08:14:00 -04:00
513b761909 No cube spam 2021-04-25 08:14:00 -04:00
7048e57a2b Start lod, update wgpu to fix viewport count validation error 2021-04-25 08:14:00 -04:00
b8a5e0e3b9 Add skybox 2021-04-25 08:14:00 -04:00
ad0970ee0a Fix wrong color format in col light 2021-04-25 08:14:00 -04:00
a8cc322727 Reenable terrain rendering
Refractor col lights
2021-04-25 08:14:00 -04:00
3bdd25ec4c Fix the orientation of the rendering
Reenable the rendering of the player
2021-04-25 08:14:00 -04:00
03f5e65867 Pass format to particle pipeline 2021-04-25 08:14:00 -04:00
1f70b7d24d Renable the figure and terrain drawing code (not working yet) 2021-04-25 08:13:59 -04:00
f83110cfc9 Fix culling of postprocess/cloud triangles 2021-04-25 08:13:19 -04:00
f268c8fba8 Particles compiles and runs (no visuals yet) 2021-04-25 08:13:19 -04:00
b7d22c7971 Remove the depth buffer from the Third drawer 2021-04-25 08:13:19 -04:00