blob: 5fa357e54cfbe94fc79c6dbe6befff1b6533e8da [file] [log] [blame]
attribute vec3 position;
uniform mat4 ModelViewProjectionMatrix;
// Removing this varying causes an inexplicable performance regression
// with r600g... Keeping it for now.
varying vec4 dummy;
float process(float d)
{
$PROCESS$
return d;
}
void main(void)
{
dummy = vec4(1.0);
float d = fract(position.x);
$MAIN$
vec4 pos = vec4(position.x,
position.y + 0.1 * d * fract(position.x),
position.z, 1.0);
// Transform the position to clip coordinates
gl_Position = ModelViewProjectionMatrix * pos;
}