aboutsummaryrefslogtreecommitdiffstats
path: root/config/cava/shaders/pass_through.vert
diff options
context:
space:
mode:
Diffstat (limited to 'config/cava/shaders/pass_through.vert')
-rw-r--r--config/cava/shaders/pass_through.vert14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/cava/shaders/pass_through.vert b/config/cava/shaders/pass_through.vert
new file mode 100644
index 00000000..a4f20e52
--- /dev/null
+++ b/config/cava/shaders/pass_through.vert
@@ -0,0 +1,14 @@
+#version 330
+
+
+// Input vertex data, different for all executions of this shader.
+layout(location = 0) in vec3 vertexPosition_modelspace;
+
+// Output data ; will be interpolated for each fragment.
+out vec2 fragCoord;
+
+void main()
+{
+ gl_Position = vec4(vertexPosition_modelspace,1);
+ fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0;
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage