Commit Graph

51 Commits

Author SHA1 Message Date
5434ce546b Fix issue with missing capability when enabling shaderc optimizations
See https://github.com/gfx-rs/wgpu/issues/4915

Also:
* Remove unused vert-out frag-in variables from shaders (naga doesn't
  like this probably because they are optimized out on the fragment
  side). This restriction from naga may be relaxed in the future
  see https://github.com/gfx-rs/wgpu/issues/3748.
* Enable OptimizationLevel::Performance for shaderc by default
* Add a environment variable VOXYGEN_SHADERC_OPTS for disabling this
  (e.g. to test if it actually makes a difference on any platform).
  (TODO: testing might be easier if there was a way to do toggle it
  without restarting...)
2024-02-14 16:36:59 -05:00
856c64c9ee smaller code cleanups, copy paste errors, or wrong merge resolutions fixed according to MR reviews 2024-02-01 12:05:10 +01:00
165c88bd74 patch wgpu to 18.2 2024-02-01 12:01:03 +01:00
9903d2c545 more testing 2024-01-30 00:52:49 +01:00
d29d22dd0a update to wgpu 0.18 2024-01-30 00:52:49 +01:00
7589774967 Renamed tether renderer to rope, fixed tether lengths 2023-10-21 13:51:42 +01:00
9a72d52c48 Began adding tether visuals 2023-10-21 13:49:04 +01:00
e81516a154 Log shader warnings 2023-10-18 21:50:40 +01:00
2a9e43b847 Draw distinction between bilinear filtering and nearest neighbour 2023-05-31 18:26:53 +01:00
efd932c71e Progress on GPU premultiplication.
* General progress in setting up code paths to support GPU
  premultiplication.
* Created `PremultiplyUpload` type to represent an initiated image
  upload where the premultiply pass needs to be ran to complete it.
* Converted from compute pass to render pass since current limitations
  make it difficult to write directly to a srgb image from a compute
  shader.
* Replace `CachedDetails::Immutable` with keeping track of the
  parameters used to create the texture (i.e. the border color).
* Create `TextureRequirements`, `TextureParamters`, and `CacheKey` types
  to encode parameters that go into texture creation and image caching
  and to determine when the space in texture memory should be reused
  when replacing a graphic.
* Add custom texture creation logic for the UI textures since those need
  certain usage combinations.
2023-04-08 00:28:31 -04:00
18657fdb66 Render train tracks to the shadow map. 2022-11-06 20:54:58 -05:00
f29b1da583 Implemented FxUpscale 2022-10-27 01:15:20 +01:00
40e47b4f3e Added reflection mode settings 2022-10-23 20:03:21 +01:00
3f2efea4f2 Experimental river velocity in shaders 2022-10-23 01:42:00 +01:00
80fa0baf09 Added HQX anti-aliasing 2022-09-10 10:56:22 +01:00
50274fbc0c add newline to flashing lights option 2022-08-12 20:30:32 +02:00
cfdc2a8ae6 Add setting to disable flashing lights 2022-07-31 21:53:25 +00:00
79cac935c8 Added rain occlusion 2022-07-04 18:07:11 +02:00
ca1a27bd11 Merge branch 'imbris/update-tracy' into 'master'
Update tracy

See merge request veloren/veloren!3400
2022-05-27 02:50:24 +00:00
5cf899c4fe Plot fixes in client and dynamic name fix in voxygen (tracy update) 2022-05-26 22:19:11 -04:00
f35c98d1a1 Added LoD distance setting 2022-05-10 12:40:06 +01:00
ac0e7a7724 Use dedicated fragment shader 2022-05-10 12:38:36 +01:00
b3126ca687 Initial implementation of LoD trees 2022-05-10 12:38:36 +01:00
Sam
f5e0cb0045 Addressed review comments 2022-03-03 01:11:18 -05:00
Sam
0a0fffd5ed Addressed review comments 2022-03-03 01:11:17 -05:00
Sam
5a60562eee Addressed review comments 2022-03-03 01:11:16 -05:00
Sam
d9028ec978 Dynamic model now used for trail. 2022-03-03 01:10:49 -05:00
Sam
0794f980fe Mostly snaked through another rendering pipeline 2022-03-03 01:10:47 -05:00
5f8957d8ef Globally allow the clippy lints {new_without_default, many_single_char_names, identity_op, type_complexity, too_many_arguments}. 2022-01-30 20:16:20 +01:00
5a7cd39625 Added point glow slider 2022-01-20 13:40:11 +00:00
fcd25648fe Fixed point glow with no clouds 2022-01-19 20:08:13 -05:00
cd428d9267 Added support for experimental shaders 2022-01-17 22:20:33 +00:00
ef40ebe0c8 update toolchain to nightly-2021-11-24 2021-11-24 10:09:22 +01:00
5500435d2f Revert "Replace shaderc with naga"
This reverts commit 446d93dda0.
2021-09-04 11:59:18 -07:00
446d93dda0 Replace shaderc with naga 2021-08-31 22:53:10 +01:00
a1026c36f5 Make bloom intensity configurable, make whether less blurred layers are added in toggleable, hold onto copy of pipeline modes instead of returning it from pipeline creation 2021-08-01 18:50:39 -04:00
147e4f00f6 Enhance bloom::NUM_SIZES docs, add TODO, remove dbgs 2021-08-01 18:50:38 -04:00
6cabd74871 Make bloom optional with a config option that is not exposed in the UI (to give artists time to refine bloom before exposing the option) 2021-08-01 18:50:38 -04:00
29bfee26c0 Add bloom passes in character select screen, use proper source image for bloom after clouds are applied, add blurred and less blurred stages of bloom together (experimental could remove), add filtering downsample pass that is not yet used 2021-08-01 18:50:37 -04:00
2d83ef1c0e Initial bloom impl 2021-08-01 18:50:37 -04:00
9b3b21f368 fix clippy warnings 2021-07-12 12:09:09 +02:00
2b8eaae572 Update wgpu, cleanup a bit of commented shader code, improve sprite LOD selection code 2021-06-03 00:10:06 -04:00
7b04599a3b Implement a Debug pipeline for hitboxes and pathfinding lines.
- Implements mesh generation for cylinders and lines.
    - Implements an Id-allocator so that clients can mutate positions efficiently.
    - Is split into pipeline and scene modules.
    - Contains simple shaders that just pass through a position and color.
2021-06-03 00:10:06 -04:00
5749983868 Make shadow vert shaders always contain their content but ensure they are never used when shadow maps are disabled, remove uneeded shadow frag shader 2021-06-03 00:10:06 -04:00
1647c9d607 Update wgpu to latest version and improve error formating 2021-06-03 00:10:06 -04:00
d5f4a4443a Fix all clippy warnings 2021-06-03 00:10:05 -04:00
9be424de53 Remove unused waves texture 2021-06-03 00:10:05 -04:00
93ad05d237 Fix most of the cargo check warnings 2021-06-03 00:10:05 -04:00
9c3e3ea638 wgpu rebase fix: crossbeam -> crossbeam_channel 2021-06-03 00:09:55 -04:00
f2fed72785 Fix bug in sprite pipeline creation & misc other pipeline creation fixes 2021-06-02 23:59:51 -04:00