examples: fix BlendState for rotating-cube and two-cubes (#244)

This commit is contained in:
PiergiorgioZagaria 2022-04-20 19:59:40 +02:00 committed by GitHub
parent bb65083561
commit 8f7a20d2e6
Failed to generate hash of commit
2 changed files with 4 additions and 4 deletions

View file

@ -61,12 +61,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{

View file

@ -61,12 +61,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{