blob: 8ebde52ca4f8fe58f371de3132c868205a998929 [file] [log] [blame]
attribute vec3 a_position;
attribute vec2 a_tex_coord;
varying vec2 v_tex_coord_y;
varying vec2 v_tex_coord_uv;
uniform vec4 scale_translate_y;
uniform vec4 scale_translate_uv;
uniform mat4 model_view_projection_transform;
void main() {
gl_Position = model_view_projection_transform * vec4(a_position.xyz, 1.0);
v_tex_coord_y = a_tex_coord * scale_translate_y.xy + scale_translate_y.zw;
v_tex_coord_uv = a_tex_coord * scale_translate_uv.xy + scale_translate_uv.zw;
}