diff options
| author | raysan5 <[email protected]> | 2014-03-02 16:06:01 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2014-03-02 16:06:01 +0100 |
| commit | 451568e5a9fd93bb594d055ae1e672ea0951fff7 (patch) | |
| tree | b08e4a073507fed2b7764035d35ab3ec5f04f016 /src/simple150.vert | |
| parent | 174cd86d086f3d57d629c4750d2b87a656ada9b2 (diff) | |
| download | raylib-451568e5a9fd93bb594d055ae1e672ea0951fff7.tar.gz raylib-451568e5a9fd93bb594d055ae1e672ea0951fff7.zip | |
The future of raylib!
Mapping of OpenGL 1.1 immediate mode functions to OpenGL 3.2+ (and
OpenGL ES 2.0) programmable pipeline
Diffstat (limited to 'src/simple150.vert')
| -rw-r--r-- | src/simple150.vert | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/simple150.vert b/src/simple150.vert new file mode 100644 index 00000000..8c23b731 --- /dev/null +++ b/src/simple150.vert @@ -0,0 +1,21 @@ +#version 150 + +uniform mat4 projectionMatrix; +uniform mat4 modelviewMatrix; + +in vec3 vertexPosition; +in vec2 vertexTexCoord; +in vec4 vertexColor; + +out vec2 fragTexCoord; +out vec4 fragColor; + +void main() +{ + // Pass some variables to the fragment shader + fragTexCoord = vertexTexCoord; + fragColor = vertexColor; + + // Apply all matrix transformations to vertex + gl_Position = projectionMatrix * modelviewMatrix * vec4(vertexPosition, 1.0); +}
\ No newline at end of file |
