author | Wolfgang Steffens <WolfgangSteff@gmail.com> |
Mon, 28 May 2012 10:38:27 +0200 | |
changeset 7138 | f8248bcba8f1 |
parent 7129 | 0ce4f478ea6c |
child 7188 | 580cd247511e |
permissions | -rw-r--r-- |
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
1 |
// !!!just testing!!! |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
2 |
// This is not GLSL 1.3+ compatible, as its using the compatibility profile! |
7138
f8248bcba8f1
moved generic matrix code to uMatrix.pas
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7129
diff
changeset
|
3 |
uniform mat4 mvp; |
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
4 |
varying vec4 tint; |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
5 |
|
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
6 |
void main() |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
7 |
{ |
7138
f8248bcba8f1
moved generic matrix code to uMatrix.pas
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7129
diff
changeset
|
8 |
gl_Position = mvp * gl_Vertex; |
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
9 |
gl_TexCoord[0] = gl_MultiTexCoord0; |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
10 |
tint = gl_Color; |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff
changeset
|
11 |
} |