mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
update alpha dst_factor
This commit is contained in:
parent
019cad9e04
commit
5ab026d943
2 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ fn setup(world: &mut World) {
|
||||||
math::vec2(200.0, 200.0),
|
math::vec2(200.0, 200.0),
|
||||||
Anchors::new(0.5, 0.5, 0.5, 0.5),
|
Anchors::new(0.5, 0.5, 0.5, 0.5),
|
||||||
Margins::new(0.0, 100.0, 0.0, 100.0),
|
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),
|
||||||
),)],
|
),)],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,7 +206,7 @@ impl Pipeline for UiPipeline {
|
||||||
},
|
},
|
||||||
alpha_blend: wgpu::BlendDescriptor {
|
alpha_blend: wgpu::BlendDescriptor {
|
||||||
src_factor: wgpu::BlendFactor::One,
|
src_factor: wgpu::BlendFactor::One,
|
||||||
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
|
dst_factor: wgpu::BlendFactor::One,
|
||||||
operation: wgpu::BlendOperation::Add,
|
operation: wgpu::BlendOperation::Add,
|
||||||
},
|
},
|
||||||
write_mask: wgpu::ColorWrite::ALL,
|
write_mask: wgpu::ColorWrite::ALL,
|
||||||
|
|
Loading…
Reference in a new issue