summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/shadowStencil.fs0
-rw-r--r--gfx/gl/shaders/shadowStencil.vs11
2 files changed, 11 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowStencil.fs b/gfx/gl/shaders/shadowStencil.fs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/gfx/gl/shaders/shadowStencil.fs
diff --git a/gfx/gl/shaders/shadowStencil.vs b/gfx/gl/shaders/shadowStencil.vs
new file mode 100644
index 0000000..4f4c250
--- /dev/null
+++ b/gfx/gl/shaders/shadowStencil.vs
@@ -0,0 +1,11 @@
+#version 330 core
+#extension GL_ARB_shading_language_420pack : enable
+
+include(`meshIn.glsl')
+uniform mat4 viewProjection;
+
+void
+main()
+{
+ gl_Position = viewProjection * vec4(position, 1);
+}