pioneers/shaders/ui/vertex.shader

10 lines
171 B
Plaintext
Raw Normal View History

#version 110
attribute vec2 position;
varying vec2 texcoord;
2014-03-24 07:21:30 +00:00
void main()
{
gl_Position = vec4(position, 0.0, 1.0);
texcoord = position * vec2(0.5) + vec2(0.5);
2014-03-24 07:21:30 +00:00
}