Copy updated WR shaders.

This commit is contained in:
Glenn Watson 2016-08-13 05:50:31 +10:00
parent a22913569c
commit 3543cc6098
7 changed files with 58 additions and 12 deletions

View file

@ -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
}