forked from 0ad/0ad
historic_bruno
7dec618898
Replaces glBegin/End with glDrawArrays, GL_QUADS with GL_TRIANGLES, and replaces glPush/PopAttrib by resetting the viewport manually. Adjusts GLSL shaders for these changes. This was SVN commit r14152.
14 lines
171 B
GLSL
14 lines
171 B
GLSL
#version 110
|
|
|
|
varying vec2 v_tex;
|
|
|
|
attribute vec3 a_vertex;
|
|
attribute vec2 a_uv0;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(a_vertex, 1.0);
|
|
|
|
v_tex = a_uv0;
|
|
}
|