forked from nonsensical-dev/zenyx-engine
fix(rendering): enable alpha blending
This commit is contained in:
parent
cc3c82d412
commit
749e51e074
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ impl WgpuRenderer<'_> {
|
|||
view: &view,
|
||||
resolve_target: None,
|
||||
ops: wgpu::Operations {
|
||||
load: wgpu::LoadOp::Clear(wgpu::Color::BLACK),
|
||||
load: wgpu::LoadOp::Clear(wgpu::Color::WHITE),
|
||||
store: wgpu::StoreOp::Store,
|
||||
},
|
||||
})],
|
||||
|
@ -256,7 +256,7 @@ impl WgpuState {
|
|||
});
|
||||
let var_name = [Some(wgpu::ColorTargetState {
|
||||
format: surface.get_capabilities(&adapter).formats[0],
|
||||
blend: Some(wgpu::BlendState::REPLACE),
|
||||
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
|
||||
write_mask: wgpu::ColorWrites::ALL,
|
||||
})];
|
||||
let pipeline_descriptor = wgpu::RenderPipelineDescriptor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue