diff options
| author | Ray <[email protected]> | 2016-05-21 20:11:23 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2016-05-21 20:11:23 +0200 |
| commit | 9811a376902b0f568f31d2e8aace28144fbf33ff (patch) | |
| tree | 26adf20c7a1f71cfc986df22c0f5e15520485ec1 /examples/resources/shaders/standard.vs | |
| parent | 0b65b44a788d7b53c794ae3d197177ded844bb59 (diff) | |
| parent | dcd6942ed1ab703625f5c7072cbcfd823c681db7 (diff) | |
| download | raylib-9811a376902b0f568f31d2e8aace28144fbf33ff.tar.gz raylib-9811a376902b0f568f31d2e8aace28144fbf33ff.zip | |
Merge pull request #120 from victorfisac/develop
Standard Lighting (2/3)
Diffstat (limited to 'examples/resources/shaders/standard.vs')
| -rw-r--r-- | examples/resources/shaders/standard.vs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/resources/shaders/standard.vs b/examples/resources/shaders/standard.vs new file mode 100644 index 00000000..fc0a5ff4 --- /dev/null +++ b/examples/resources/shaders/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 |
