update alpha dst_factor

This commit is contained in:
Carter Anderson 2020-01-13 02:14:10 -08:00
parent 019cad9e04
commit 5ab026d943
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ fn setup(world: &mut World) {
math::vec2(200.0, 200.0),
Anchors::new(0.5, 0.5, 0.5, 0.5),
Margins::new(0.0, 100.0, 0.0, 100.0),
math::vec4(1.0, 0.7, 0.7, 0.2),
math::vec4(1.0, 0.9, 0.9, 0.4),
),)],
);
}

View file

@ -206,7 +206,7 @@ impl Pipeline for UiPipeline {
},
alpha_blend: wgpu::BlendDescriptor {
src_factor: wgpu::BlendFactor::One,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
dst_factor: wgpu::BlendFactor::One,
operation: wgpu::BlendOperation::Add,
},
write_mask: wgpu::ColorWrite::ALL,