summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/shadowCast.fs6
-rw-r--r--gfx/gl/shaders/shadowDynamicPoint.vs12
-rw-r--r--gfx/gl/shaders/shadowFixedPoint.vs13
3 files changed, 31 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowCast.fs b/gfx/gl/shaders/shadowCast.fs
new file mode 100644
index 0000000..d427da2
--- /dev/null
+++ b/gfx/gl/shaders/shadowCast.fs
@@ -0,0 +1,6 @@
+#version 330 core
+
+void
+main()
+{
+}
diff --git a/gfx/gl/shaders/shadowDynamicPoint.vs b/gfx/gl/shaders/shadowDynamicPoint.vs
new file mode 100644
index 0000000..91d8bf7
--- /dev/null
+++ b/gfx/gl/shaders/shadowDynamicPoint.vs
@@ -0,0 +1,12 @@
+#version 330 core
+
+in vec3 position;
+
+uniform mat4 viewProjection;
+uniform mat4 model;
+
+void
+main()
+{
+ gl_Position = viewProjection * model * vec4(position, 1.0);
+}
diff --git a/gfx/gl/shaders/shadowFixedPoint.vs b/gfx/gl/shaders/shadowFixedPoint.vs
new file mode 100644
index 0000000..9e1cc62
--- /dev/null
+++ b/gfx/gl/shaders/shadowFixedPoint.vs
@@ -0,0 +1,13 @@
+#version 330 core
+
+layout(location = 0) in vec3 position;
+layout(location = 1) in vec3 normal;
+layout(location = 2) in vec2 tex;
+
+uniform mat4 viewProjection;
+
+void
+main()
+{
+ gl_Position = viewProjection * vec4(position, 1.0);
+}