diff options
| author | raysan5 <[email protected]> | 2016-09-21 12:28:49 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-09-21 12:28:49 +0200 |
| commit | 478d3cbb79caa27351cf9e9a5ff9925ca658a89c (patch) | |
| tree | 5df72b6899e637232b5e25e8b2dae30f1cf6c795 /examples/resources/shaders/glsl330/standard.vs | |
| parent | c5bf9623d155efc94325b1ecc311d66a8ee2a704 (diff) | |
| download | raylib-478d3cbb79caa27351cf9e9a5ff9925ca658a89c.tar.gz raylib-478d3cbb79caa27351cf9e9a5ff9925ca658a89c.zip | |
Added standard shader for testing
Diffstat (limited to 'examples/resources/shaders/glsl330/standard.vs')
| -rw-r--r-- | examples/resources/shaders/glsl330/standard.vs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/resources/shaders/glsl330/standard.vs b/examples/resources/shaders/glsl330/standard.vs new file mode 100644 index 00000000..fc0a5ff4 --- /dev/null +++ b/examples/resources/shaders/glsl330/standard.vs @@ -0,0 +1,23 @@ +#version 330 + +in vec3 vertexPosition; +in vec3 vertexNormal; +in vec2 vertexTexCoord; +in vec4 vertexColor; + +out vec3 fragPosition; +out vec2 fragTexCoord; +out vec4 fragColor; +out vec3 fragNormal; + +uniform mat4 mvpMatrix; + +void main() +{ + fragPosition = vertexPosition; + fragTexCoord = vertexTexCoord; + fragColor = vertexColor; + fragNormal = vertexNormal; + + gl_Position = mvpMatrix*vec4(vertexPosition, 1.0); +}
\ No newline at end of file |
