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

@ -3,5 +3,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
void main(void) {
#ifdef WR_FEATURE_TRANSFORM
float alpha = 0;
init_transform_fs(vLocalPos, vLocalRect, alpha);
oFragColor = vec4(1, 1, 1, alpha) * vColor;
#else
oFragColor = vColor;
#endif
}