diff options
| author | raysan5 <raysan5@gmail.com> | 2016-06-21 13:45:35 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-06-21 13:45:35 +0200 |
| commit | e913de58c73ff82fbcd8f23b8cb1fd1a88664164 (patch) | |
| tree | 67c158d76411d002471fbb8f7f4d10ad13e777aa /examples/resources/shaders/base.vs | |
| parent | afe033412b4d8bffc9235a49dc8049eb74af59f3 (diff) | |
| download | raylib-e913de58c73ff82fbcd8f23b8cb1fd1a88664164.tar.gz raylib-e913de58c73ff82fbcd8f23b8cb1fd1a88664164.zip | |
Added distortion shader for testing
Diffstat (limited to 'examples/resources/shaders/base.vs')
| -rw-r--r-- | examples/resources/shaders/base.vs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/resources/shaders/base.vs b/examples/resources/shaders/base.vs new file mode 100644 index 00000000..638cb8ae --- /dev/null +++ b/examples/resources/shaders/base.vs @@ -0,0 +1,26 @@ +#version 330 + +// Input vertex attributes +in vec3 vertexPosition; +in vec2 vertexTexCoord; +in vec3 vertexNormal; +in vec4 vertexColor; + +// Input uniform values +uniform mat4 mvpMatrix; + +// Output vertex attributes (to fragment shader) +out vec2 fragTexCoord; +out vec4 fragColor; + +// NOTE: Add here your custom variables + +void main() +{ + // Send vertex attributes to fragment shader + fragTexCoord = vertexTexCoord; + fragColor = vertexColor; + + // Calculate final vertex position + gl_Position = mvpMatrix*vec4(vertexPosition, 1.0); +}
\ No newline at end of file |
