aboutsummaryrefslogtreecommitdiff
path: root/tests/glmark2/data/shaders/terrain-texture.vert
blob: 021436a556df59b8837b493e08ac405e6947ebaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef GL_ES
#define MEDIUMP mediump
#else
#define MEDIUMP
#endif

uniform vec2 uvOffset;
uniform MEDIUMP vec2 uvScale;

attribute vec3 position;

varying vec2 vUv;

void main()
{
    vUv = uvScale * (position.xy * 0.5 + 0.5) + uvOffset;
    gl_Position = vec4( position, 1.0);
}