From 5ab026d943a002fba4ad48c3ba49190c5cf644a2 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 13 Jan 2020 02:14:10 -0800 Subject: [PATCH] update alpha dst_factor --- examples/ui.rs | 2 +- src/render/passes/ui/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ui.rs b/examples/ui.rs index 70465998dc..fe3f4d1caf 100644 --- a/examples/ui.rs +++ b/examples/ui.rs @@ -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), ),)], ); } diff --git a/src/render/passes/ui/mod.rs b/src/render/passes/ui/mod.rs index b18b5159f8..7d13658414 100644 --- a/src/render/passes/ui/mod.rs +++ b/src/render/passes/ui/mod.rs @@ -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,