You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
465 B
GLSL
18 lines
465 B
GLSL
uniform mat4 projection;
|
|
uniform mat4 modelview;
|
|
uniform mat4 screenTransformation;
|
|
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() {
|
|
varyingTexCoords = texCoord;
|
|
gl_Position = projection*(modelview*screenTransformation*windowTransformation)*vertex;
|
|
}
|