veloren/assets/voxygen/shaders/include
Imbris 63096b2042 Complete GPU based alpha premultiplication impl and make the CPU version
even faster.

* GPU based version started in previous commit, but this fixes errors
  and bugs and gets it actually compiling and running.
* Add a way to batch together images to use the same render pass for GPU
  premultiplication if they all target the same texture.
* Pending premultiplication uploads are automatically done when calling
  `Drawer::third_pass`.
* `fast-srgb8` dep removed, we no longer convert to `f32`s to do the
  premultiplication. Two `[u16; 256]` tables are combined to compute the
  alpa premultiplied color within the same error bounds used by the
  `fast-srgb8` crate. We also no longer use explicit simd.
* Remove explicit lifetimes from `PlayState::render` since `&self` and
  `Drawer<'_>` don't need to have the same lifetime.
* Fix existing bug where invalidated cache entries were never set to
  valid when reusing them.
* `prepare_graphic` now runs some heuristics to determine whether
  premultiplication should be executed CPU side or GPU side and then
  returns a bool indicating if GPU premultiplication is needed.
2023-04-08 00:28:31 -04:00
..
cloud Fixed moon lighting of clouds 2022-12-17 15:04:57 +00:00
constants.glsl Use normal and material gbuffer to improve quality of SSR 2022-12-30 15:33:23 +00:00
fxaa.glsl Slightly smoother FxUpscale 2023-04-01 18:06:20 +01:00
globals.glsl Make wind sway change according to weather wind velocity 2022-12-31 17:40:40 +00:00
light.glsl Made point shadows with shadow mapping an experimental shader 2023-01-12 15:39:11 +00:00
lod.glsl Added reflection mode settings 2022-10-23 20:03:21 +01:00
point_glow.glsl Better storm clouds 2022-12-17 14:57:55 +00:00
rain_occlusion.glsl Fixed occlusion bias 2022-07-10 16:56:45 +01:00
random.glsl Balance caustics with depth better 2022-09-22 23:45:16 +01:00
shadows.glsl Fix non uniform control flow in shader 2021-07-29 18:05:27 +01:00
sky.glsl Improved cloud visuals and performance 2022-12-15 23:56:28 +00:00
srgb.glsl Complete GPU based alpha premultiplication impl and make the CPU version 2023-04-08 00:28:31 -04:00