summaryrefslogtreecommitdiffhomepage
path: root/examples/resources/shaders/standard.vs
diff options
context:
space:
mode:
authorRay <[email protected]>2016-05-21 20:11:23 +0200
committerRay <[email protected]>2016-05-21 20:11:23 +0200
commit9811a376902b0f568f31d2e8aace28144fbf33ff (patch)
tree26adf20c7a1f71cfc986df22c0f5e15520485ec1 /examples/resources/shaders/standard.vs
parent0b65b44a788d7b53c794ae3d197177ded844bb59 (diff)
parentdcd6942ed1ab703625f5c7072cbcfd823c681db7 (diff)
downloadraylib-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.vs23
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