mirror of
https://github.com/servo/servo.git
synced 2025-08-27 08:08:19 +01:00
Update wr + shaders for local clip rect changes.
This commit is contained in:
parent
6f22251e65
commit
b646c57230
12 changed files with 83 additions and 25 deletions
|
@ -37,18 +37,21 @@ void main(void) {
|
|||
#ifdef WR_FEATURE_TRANSFORM
|
||||
TransformVertexInfo vi = write_transform_vertex(border.info);
|
||||
vLocalPos = vi.local_pos;
|
||||
|
||||
// Local space
|
||||
vLocalRect = vi.clipped_local_rect;
|
||||
#else
|
||||
VertexInfo vi = write_vertex(border.info);
|
||||
vLocalPos = vi.local_clamped_pos.xy;
|
||||
|
||||
// Local space
|
||||
vLocalRect = border.info.local_rect;
|
||||
#endif
|
||||
|
||||
// This is what was currently sent.
|
||||
vVerticalColor = border.verticalColor;
|
||||
vHorizontalColor = border.horizontalColor;
|
||||
|
||||
// Local space
|
||||
vLocalRect = border.info.local_rect;
|
||||
|
||||
// Just our boring radius position.
|
||||
vRadii = border.radii;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue