diff options
Diffstat (limited to 'src/gfx/map.rs')
-rw-r--r-- | src/gfx/map.rs | 9 |
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, })], }), |