Commit Graph

738 Commits

Author SHA1 Message Date
Syniis
50905aebfe Mushroom spore particles 2024-02-27 19:28:03 +01:00
Imbris
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
juliancoffee
1dee12af85 Improve airflow particles 2024-02-08 16:25:39 +02:00
juliancoffee
52328b89d2 rebase 2024-02-08 16:25:39 +02:00
laundmo
283b404724 Working wind/lift particles
+ clippy fixes
2024-02-08 16:25:39 +02:00
Isse
9903d2c545 more testing 2024-01-30 00:52:49 +01:00
flo
48a79b3e78 haniwa 2024-01-20 17:45:23 +00:00
Joshua Barretto
d51b5c5bea Add airship to char select 2024-01-15 22:35:42 +00:00
Darren Salt
dc0725e104 Avoid a wgpu SPIR-V warning about BitFieldUExtract
premultiply-alpha-vert.glsl contains a function unpack() which, without this
change, causes the following warnings:

WARN wgpu_core::device: Failed to parse shader SPIR-V code for Some("premultiply-alpha-vert.glsl …"): UnsupportedInstruction(Function, BitFieldUExtract)
WARN wgpu_core::device:     Proceeding unsafely without validation

This avoids that warning (and removes now-unnecessary type conversions).
2024-01-03 16:33:02 +00:00
Michał
14120232a0 Phoenix overhaul 2023-11-28 11:13:18 +00:00
Isse
db1480b564 put ice_reflections under REFLECTION_MODE_HIGH 2023-11-10 12:53:09 +01:00
Joshua Barretto
84e59c52fb Made portal fizz better convey access 2023-11-08 23:19:02 +01:00
Joshua Barretto
83dc22dfbf Made ice reflective 2023-11-08 23:19:00 +01:00
Isse
7a8e363df1 better way to show glitter 2023-11-02 15:22:32 +01:00
Isse
48d95e7699 SnowGlitter experimental shader 2023-11-02 12:53:34 +01:00
Isse
f98e4331a1 Fix LoD reflections for nvidea + vulkan 2023-10-23 19:48:30 +00:00
Joshua Barretto
7589774967 Renamed tether renderer to rope, fixed tether lengths 2023-10-21 13:51:42 +01:00
Joshua Barretto
a5ec81a2ab Better tether pattern, account for mass 2023-10-21 13:51:41 +01:00
Joshua Barretto
deca7ae258 Finished adding tether graphics 2023-10-21 13:51:40 +01:00
Joshua Barretto
9a72d52c48 Began adding tether visuals 2023-10-21 13:49:04 +01:00
Joshua Barretto
e81516a154 Log shader warnings 2023-10-18 21:50:40 +01:00
Joshua Barretto
cea7636e29 Reverted bad shader changes 2023-10-18 21:20:15 +01:00
Joshua Barretto
321cc030ad Better LoD giant trees 2023-10-18 09:58:00 +01:00
Joshua Barretto
ba763f2da5 Make no terrain pop the default 2023-10-18 09:58:00 +01:00
Joshua Barretto
6a82fcf703 Added block noise to LoD objects 2023-10-18 09:58:00 +01:00
Joshua Barretto
8036ffa374 Removed unnecessary shader code 2023-10-18 09:58:00 +01:00
Joshua Barretto
c07d7a212b Better LoD effects, performance improvements 2023-10-18 09:58:00 +01:00
Joshua Barretto
4d6c3a00f3 Testing better LoD voxelisation techniques 2023-10-18 09:57:59 +01:00
Isse
b6c234b26e fix puddle details 2023-10-15 00:48:37 +02:00
Raul Wagner Costa
46cf1f1914 Linearize light colors on the CPU 2023-10-14 18:10:35 +00:00
Isse
d620206f37 fix reflection mode low 2023-10-14 09:52:46 +02:00
Isse
56175c2730 rename client_time to local_time 2023-10-13 13:17:52 +02:00
Isse
3e19c847f1 use client local time for water 2023-10-12 01:46:43 +02:00
Isse
72db9b61b3 client local time 2023-10-12 01:46:12 +02:00
Isse
472b996c8e Merge branch 'isse/shader-fp-fixes' into 'master'
Shader floating point fixes

See merge request veloren/veloren!4120
2023-10-11 23:04:33 +00:00
Isse
a1afd5c62f fix signs in particle-vert.glsl 2023-10-11 20:46:44 +02:00
Isse
d12f0acd1c fix uses of time of day, which are scaled wrong 2023-10-11 20:39:17 +02:00
Isse
65e6eb4e38 add comments explaining the elements of time_of_day and tick in shaders 2023-10-11 20:29:37 +02:00
maxicarlos08
8a5f237e9c Frost gigas tweaks 2023-10-08 11:35:01 +00:00
Isse
7d37646dac renames and comments 2023-10-07 19:53:55 +02:00
Isse
2eae780e71 vectorize wave functions 2023-10-07 19:53:55 +02:00
Isse
bc436e2c9f make particles only use 1 float for inst time again 2023-10-07 19:53:55 +02:00
Isse
a152e4dfb4 time-proof usages of tick 2023-10-07 19:53:55 +02:00
Isse
6d4be9bd01 time proof time of day in shaders 2023-10-07 19:53:55 +02:00
Maxicarlos08
f2958954b9
new model for portal & use cultist particles 2023-08-27 19:40:49 +02:00
Maxicarlos08
0c9a942027
refactor teleporter system and include nearby pets 2023-08-15 12:24:49 +02:00
Maxicarlos08
bb2034ca92
portal particles 2023-08-15 12:24:48 +02:00
flo
57fe2c4adb spawn wyverns 2023-08-02 07:55:10 +00:00
Joshua Barretto
ffabace13d Fixed bloom sample UV, added Cinematic shader 2023-06-28 12:21:16 +01:00
Avi Weinstock
d023f9db54 Only bind the materials texture in the postprocess bindgroup if it's needed. 2023-06-07 16:21:28 -04:00