mirror of
https://github.com/servo/servo.git
synced 2025-08-19 04:15:33 +01:00
Update webrender, gleam and associated shaders.
This commit is contained in:
parent
1f1e92aca3
commit
9535c5ba5e
18 changed files with 142 additions and 85 deletions
|
@ -5,14 +5,21 @@
|
|||
|
||||
void main(void) {
|
||||
RectangleClip rect = fetch_rectangle_clip(gl_InstanceID);
|
||||
|
||||
#ifdef WR_FEATURE_TRANSFORM
|
||||
TransformVertexInfo vi = write_transform_vertex(rect.info);
|
||||
vPos = vi.local_pos;
|
||||
vLocalRect = vi.clipped_local_rect;
|
||||
#else
|
||||
VertexInfo vi = write_vertex(rect.info);
|
||||
vPos = vi.local_clamped_pos;
|
||||
#endif
|
||||
|
||||
vClipRect = vec4(rect.clip.rect.xy, rect.clip.rect.xy + rect.clip.rect.zw);
|
||||
vClipRadius = vec4(rect.clip.top_left.outer_inner_radius.x,
|
||||
rect.clip.top_right.outer_inner_radius.x,
|
||||
rect.clip.bottom_right.outer_inner_radius.x,
|
||||
rect.clip.bottom_left.outer_inner_radius.x);
|
||||
vPos = vi.local_clamped_pos;
|
||||
|
||||
vColor = rect.color;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue