mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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. |
||
---|---|---|
.. | ||
antialias | ||
fluid-frag | ||
include | ||
test | ||
blit-frag.glsl | ||
blit-vert.glsl | ||
clouds-frag.glsl | ||
clouds-vert.glsl | ||
debug-frag.glsl | ||
debug-vert.glsl | ||
dual-downsample-filtered-frag.glsl | ||
dual-downsample-frag.glsl | ||
dual-upsample-frag.glsl | ||
figure-frag.glsl | ||
figure-vert.glsl | ||
fluid-vert.glsl | ||
light-shadows-debug-vert.glsl | ||
light-shadows-directed-vert.glsl | ||
light-shadows-figure-vert.glsl | ||
light-shadows-frag.glsl | ||
light-shadows-geom.glsl | ||
light-shadows-vert.glsl | ||
lod-object-frag.glsl | ||
lod-object-vert.glsl | ||
lod-terrain-frag.glsl | ||
lod-terrain-vert.glsl | ||
particle-frag.glsl | ||
particle-vert.glsl | ||
player-shadow-frag.glsl | ||
point-light-shadows-vert.glsl | ||
postprocess-frag.glsl | ||
postprocess-vert.glsl | ||
premultiply-alpha-frag.glsl | ||
premultiply-alpha-vert.glsl | ||
rain-occlusion-directed-vert.glsl | ||
rain-occlusion-figure-vert.glsl | ||
skybox-frag.glsl | ||
skybox-vert.glsl | ||
sprite-frag.glsl | ||
sprite-vert.glsl | ||
terrain-frag.glsl | ||
terrain-vert.glsl | ||
trail-frag.glsl | ||
trail-vert.glsl | ||
ui-frag.glsl | ||
ui-vert.glsl |