summaryrefslogtreecommitdiff
path: root/warper/bin/data/shaders/ofxWarp/WarpPerspective.vert
diff options
context:
space:
mode:
Diffstat (limited to 'warper/bin/data/shaders/ofxWarp/WarpPerspective.vert')
-rw-r--r--warper/bin/data/shaders/ofxWarp/WarpPerspective.vert21
1 files changed, 21 insertions, 0 deletions
diff --git a/warper/bin/data/shaders/ofxWarp/WarpPerspective.vert b/warper/bin/data/shaders/ofxWarp/WarpPerspective.vert
new file mode 100644
index 0000000..81e4fad
--- /dev/null
+++ b/warper/bin/data/shaders/ofxWarp/WarpPerspective.vert
@@ -0,0 +1,21 @@
+#version 150
+
+// OF default uniforms and attributes
+uniform mat4 modelViewProjectionMatrix;
+uniform vec4 globalColor;
+
+in vec4 position;
+in vec2 texcoord;
+in vec4 color;
+
+// App uniforms and attributes
+out vec2 vTexCoord;
+out vec4 vColor;
+
+void main(void)
+{
+ vTexCoord = texcoord;
+ vColor = globalColor;
+
+ gl_Position = modelViewProjectionMatrix * position;
+}