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.
20 lines
249 B
GLSL
20 lines
249 B
GLSL
#version 110
|
|
|
|
uniform mat4 transform;
|
|
uniform vec2 losTransform;
|
|
|
|
varying vec2 v_tex;
|
|
|
|
attribute vec3 a_vertex;
|
|
attribute vec2 a_uv0;
|
|
|
|
|
|
varying vec2 v_los;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(a_vertex, 1.0);
|
|
|
|
v_tex = a_uv0;
|
|
}
|