examples: fix blend mode in triangle example (#240)

Co-authored-by: d3m1gd <mach+d3m1gd@users.noreply.github.com>
This commit is contained in:
d3m1gd 2022-04-19 13:50:23 +07:00 committed by GitHub
parent 0db0481f01
commit 6300c85e79
Failed to generate hash of commit

View file

@ -26,12 +26,12 @@ pub fn main() !void {
.color = .{ .color = .{
.operation = .add, .operation = .add,
.src_factor = .one, .src_factor = .one,
.dst_factor = .one, .dst_factor = .zero,
}, },
.alpha = .{ .alpha = .{
.operation = .add, .operation = .add,
.src_factor = .one, .src_factor = .one,
.dst_factor = .one, .dst_factor = .zero,
}, },
}; };
const color_target = gpu.ColorTargetState{ const color_target = gpu.ColorTargetState{