mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Copy updated WR shaders.
This commit is contained in:
parent
a22913569c
commit
3543cc6098
7 changed files with 58 additions and 12 deletions
|
@ -14,6 +14,12 @@ layout(std140) uniform Items {
|
|||
|
||||
void main(void) {
|
||||
Rectangle rect = rects[gl_InstanceID];
|
||||
write_vertex(rect.info);
|
||||
vColor = rect.color;
|
||||
#ifdef WR_FEATURE_TRANSFORM
|
||||
TransformVertexInfo vi = write_transform_vertex(rect.info);
|
||||
vLocalRect = rect.info.local_rect;
|
||||
vLocalPos = vi.local_pos;
|
||||
#else
|
||||
write_vertex(rect.info);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue