mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update WebRender to get the latest changes
This commit is contained in:
parent
8a12c15582
commit
0a13c05479
20 changed files with 650 additions and 445 deletions
|
@ -4,18 +4,24 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
void main(void) {
|
||||
RectangleClip rect = fetch_rectangle_clip(gl_InstanceID);
|
||||
|
||||
Primitive prim = load_primitive(gl_InstanceID);
|
||||
Rectangle rect = fetch_rectangle(prim.prim_index);
|
||||
vColor = rect.color;
|
||||
#ifdef WR_FEATURE_TRANSFORM
|
||||
TransformVertexInfo vi = write_transform_vertex(rect.info);
|
||||
vPos = vi.local_pos;
|
||||
TransformVertexInfo vi = write_transform_vertex(prim.local_rect,
|
||||
prim.local_clip_rect,
|
||||
prim.layer,
|
||||
prim.tile);
|
||||
vLocalRect = vi.clipped_local_rect;
|
||||
vPos = vi.local_pos;
|
||||
#else
|
||||
VertexInfo vi = write_vertex(rect.info);
|
||||
VertexInfo vi = write_vertex(prim.local_rect,
|
||||
prim.local_clip_rect,
|
||||
prim.layer,
|
||||
prim.tile);
|
||||
vPos = vi.local_clamped_pos;
|
||||
#endif
|
||||
|
||||
write_clip(rect.clip);
|
||||
|
||||
vColor = rect.color;
|
||||
Clip clip = fetch_clip(prim.clip_index);
|
||||
write_clip(clip);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue