aboutsummaryrefslogtreecommitdiff
path: root/examples/oculus_glfw_sample/base.vs
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-06-08 15:55:08 +0200
committervictorfisac <victorfisac@gmail.com>2016-06-08 15:55:08 +0200
commit88f474743763ae9d93f9734c0a22643213edf9b6 (patch)
tree310a227513c2880ebd2292efd6d982027b02ccc8 /examples/oculus_glfw_sample/base.vs
parent0ae486f07c42b33ea44880159bdc4077ce076605 (diff)
parentb79ede4edb522b0cc5e458c49cb45d49ec902758 (diff)
downloadraylib-88f474743763ae9d93f9734c0a22643213edf9b6.tar.gz
raylib-88f474743763ae9d93f9734c0a22643213edf9b6.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'examples/oculus_glfw_sample/base.vs')
-rw-r--r--examples/oculus_glfw_sample/base.vs26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/oculus_glfw_sample/base.vs b/examples/oculus_glfw_sample/base.vs
new file mode 100644
index 00000000..638cb8ae
--- /dev/null
+++ b/examples/oculus_glfw_sample/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