blob: 963dc87436bd7da0cc5ffa34e26bcbebbdb93fd4 [file] [log] [blame]
SHADER_SOURCE(gDrawLinearGradientVertexShader,
attribute vec4 position;
uniform float gradientLength;
uniform vec2 gradient;
uniform mat4 transform;
varying float index;
void main(void) {
gl_Position = transform * position;
index = dot(gl_Position.xy, gradient) * gradientLength;
}
);