summaryrefslogtreecommitdiff
path: root/src/rend2/glsl/pshadow_vp.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rend2/glsl/pshadow_vp.glsl')
-rw-r--r--src/rend2/glsl/pshadow_vp.glsl17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rend2/glsl/pshadow_vp.glsl b/src/rend2/glsl/pshadow_vp.glsl
new file mode 100644
index 00000000..0e0e3b3d
--- /dev/null
+++ b/src/rend2/glsl/pshadow_vp.glsl
@@ -0,0 +1,17 @@
+attribute vec4 attr_Position;
+attribute vec3 attr_Normal;
+
+uniform mat4 u_ModelViewProjectionMatrix;
+varying vec3 var_Position;
+varying vec3 var_Normal;
+
+
+void main()
+{
+ vec4 position = attr_Position;
+
+ gl_Position = u_ModelViewProjectionMatrix * position;
+
+ var_Position = position.xyz;
+ var_Normal = attr_Normal;
+}