Implement clipping for quads
This commit is contained in:
parent
e21890168f
commit
21eb2f692c
2 changed files with 10 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ impl Renderer {
|
|||
border_radius,
|
||||
} => {
|
||||
layer.quads.push(Quad {
|
||||
position: [bounds.x, bounds.y],
|
||||
position: [bounds.x, bounds.y - layer.y_offset as f32],
|
||||
scale: [bounds.width, bounds.height],
|
||||
color: match background {
|
||||
Background::Color(color) => color.into_linear(),
|
||||
|
|
@ -304,6 +304,7 @@ impl Renderer {
|
|||
encoder,
|
||||
&layer.quads,
|
||||
transformation,
|
||||
layer.bounds,
|
||||
target,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue