From 8f7a20d2e6e8bfb4456f9f5e119dc3cc0ee29bbb Mon Sep 17 00:00:00 2001 From: PiergiorgioZagaria <75474806+PiergiorgioZagaria@users.noreply.github.com> Date: Wed, 20 Apr 2022 19:59:40 +0200 Subject: [PATCH] examples: fix BlendState for rotating-cube and two-cubes (#244) --- examples/rotating-cube/main.zig | 4 ++-- examples/two-cubes/main.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/rotating-cube/main.zig b/examples/rotating-cube/main.zig index 70100e47..c4971d86 100755 --- a/examples/rotating-cube/main.zig +++ b/examples/rotating-cube/main.zig @@ -61,12 +61,12 @@ pub fn main() !void { .color = .{ .operation = .add, .src_factor = .one, - .dst_factor = .one, + .dst_factor = .zero, }, .alpha = .{ .operation = .add, .src_factor = .one, - .dst_factor = .one, + .dst_factor = .zero, }, }; const color_target = gpu.ColorTargetState{ diff --git a/examples/two-cubes/main.zig b/examples/two-cubes/main.zig index b3c8408f..98a7f674 100755 --- a/examples/two-cubes/main.zig +++ b/examples/two-cubes/main.zig @@ -61,12 +61,12 @@ pub fn main() !void { .color = .{ .operation = .add, .src_factor = .one, - .dst_factor = .one, + .dst_factor = .zero, }, .alpha = .{ .operation = .add, .src_factor = .one, - .dst_factor = .one, + .dst_factor = .zero, }, }; const color_target = gpu.ColorTargetState{