|
|
|
@ -118,13 +118,13 @@ impl CanvasShader {
|
|
|
|
|
depth_write: true,
|
|
|
|
|
depth_bounds_test: DepthBounds::Disabled,
|
|
|
|
|
stencil_front: Stencil {
|
|
|
|
|
compare: Compare::Always,
|
|
|
|
|
compare: Compare::Equal,
|
|
|
|
|
pass_op: StencilOp::Invert,
|
|
|
|
|
fail_op: StencilOp::Invert,
|
|
|
|
|
depth_fail_op: StencilOp::Invert,
|
|
|
|
|
compare_mask: Some(u32::max_value()),
|
|
|
|
|
write_mask: Some(u32::max_value()),
|
|
|
|
|
reference: Some(u32::max_value()),
|
|
|
|
|
depth_fail_op: StencilOp::Keep,
|
|
|
|
|
compare_mask: Some(0x01),
|
|
|
|
|
write_mask: Some(0xFF),
|
|
|
|
|
reference: Some(0x01),
|
|
|
|
|
},
|
|
|
|
|
stencil_back: Default::default()
|
|
|
|
|
};
|
|
|
|
|