fix(rendering): enable alpha blending

This commit is contained in:
Chance 2025-04-18 14:22:52 -04:00 committed by BitSyndicate
parent cc3c82d412
commit 749e51e074
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE

View file

@ -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 {