author | Wolfgang Steffens <WolfgangSteff@gmail.com> |
Tue, 05 Jun 2012 22:37:36 +0200 | |
changeset 7188 | 580cd247511e |
parent 7138 | f8248bcba8f1 |
child 11317 | 62287d4044e7 |
permissions | -rw-r--r-- |
7188
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
1 |
#version 130 |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
2 |
|
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
3 |
in vec2 vertex; |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
4 |
in vec2 texcoord; |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
5 |
in vec4 colors; |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
6 |
|
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
7 |
out vec2 tex; |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
8 |
|
7138
f8248bcba8f1
moved generic matrix code to uMatrix.pas
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7129
diff
changeset
|
9 |
uniform mat4 mvp; |
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
10 |
|
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
11 |
void main() |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
12 |
{ |
7188
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
13 |
vec4 p = mvp * vec4(vertex, 0.0f, 1.0f); |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
14 |
gl_Position = p; |
580cd247511e
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7138
diff
changeset
|
15 |
tex = texcoord; |
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
16 |
} |