summaryrefslogtreecommitdiff
path: root/src/gfx/map.rs
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-05-15 23:53:24 +0200
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-05-15 23:53:24 +0200
commit0fc89aa3ec523d3d06546220bae5393232274e13 (patch)
treea8d37d10996fa8b74a227a60b1a493b6dedfac97 /src/gfx/map.rs
parent306f2cf2c41886edaf9860038b9041a8c82c4b5b (diff)
downloadmt_client-0fc89aa3ec523d3d06546220bae5393232274e13.tar.xz
Blending and liquid source face culling
Diffstat (limited to 'src/gfx/map.rs')
-rw-r--r--src/gfx/map.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gfx/map.rs b/src/gfx/map.rs
index 8b300dd..7bd5dd3 100644
--- a/src/gfx/map.rs
+++ b/src/gfx/map.rs
@@ -401,7 +401,14 @@ impl MapRender {
entry_point: "fs_main",
targets: &[Some(wgpu::ColorTargetState {
format: state.config.format,
- blend: Some(wgpu::BlendState::REPLACE),
+ blend: Some(wgpu::BlendState {
+ color: wgpu::BlendComponent {
+ src_factor: wgpu::BlendFactor::SrcAlpha,
+ dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
+ operation: wgpu::BlendOperation::Add,
+ },
+ alpha: wgpu::BlendComponent::OVER,
+ }),
write_mask: wgpu::ColorWrites::ALL,
})],
}),