factor/extra/gpu/demos/bunny/window.v.glsl

15 lines
217 B
Plaintext
Raw Normal View History

2009-07-19 15:31:10 -04:00
#version 110
uniform vec2 texcoord_scale;
attribute vec2 vertex;
varying vec2 texcoord;
void
main()
{
texcoord = (vertex * texcoord_scale) * vec2(0.5) + vec2(0.5);
gl_Position = vec4(vertex, 0.0, 1.0);
}