2010-12-04 14:31:18 +03:00
|
|
|
uniform mat4 projection;
|
|
|
|
uniform mat4 modelview;
|
2010-12-04 14:54:05 +03:00
|
|
|
uniform mat4 screenTransformation;
|
2010-12-04 14:31:18 +03:00
|
|
|
uniform mat4 windowTransformation;
|
|
|
|
|
|
|
|
// passed in vertex - only x and y are used
|
|
|
|
attribute vec4 vertex;
|
|
|
|
// passed in texCoords - to be forwarded
|
|
|
|
attribute vec2 texCoord;
|
|
|
|
|
|
|
|
// texCoords passed to fragment shader
|
|
|
|
varying vec2 varyingTexCoords;
|
|
|
|
|
|
|
|
void main() {
|
2011-06-16 22:33:06 +04:00
|
|
|
varyingTexCoords = texCoord;
|
2011-03-06 11:10:21 +03:00
|
|
|
gl_Position = projection*(modelview*screenTransformation*windowTransformation)*vertex;
|
2010-12-04 14:31:18 +03:00
|
|
|
}
|