Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / raw / color_fade_vert.vert
blobd17437fe68be8f07e30c04ad0933a5b3de61826d
1 uniform mat4 proj_matrix;
2 uniform mat4 tex_matrix;
3 uniform float scale;
4 attribute vec2 position;
5 attribute vec2 uv;
6 varying vec2 UV;
8 void main()
10     vec4 transformed_uv = tex_matrix * vec4(uv.x, uv.y, 1.0, 1.0);
11     UV = transformed_uv.st / transformed_uv.q;
12     gl_Position = vec4(scale, scale, 1.0, 1.0) * (proj_matrix * vec4(position.x, position.y, 0.0, 1.0));