Changes to GLSL files for OpenGL

This commit is contained in:
LuisAntonRebollo 2014-04-13 19:48:51 +02:00
parent 2142d452d4
commit 6aea37b407
98 changed files with 3366 additions and 2686 deletions

View file

@ -20,16 +20,20 @@
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
in vec4 vPosition;
in vec2 vTexCoord0;
uniform mat4x4 modelview;
varying vec4 hpos;
varying vec2 uv0;
out vec4 hpos;
out vec2 uv0;
void main()
{
hpos = vec4( modelview * gl_Vertex );
hpos = vec4( modelview * vPosition );
gl_Position = hpos;
uv0 = gl_MultiTexCoord0.st;
uv0 = vTexCoord0.st;
gl_Position.y *= -1;
}