summaryrefslogtreecommitdiff
path: root/shaders/humus-domino/1.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/humus-domino/1.vert')
-rw-r--r--shaders/humus-domino/1.vert19
1 files changed, 19 insertions, 0 deletions
diff --git a/shaders/humus-domino/1.vert b/shaders/humus-domino/1.vert
new file mode 100644
index 0000000..4114202
--- /dev/null
+++ b/shaders/humus-domino/1.vert
@@ -0,0 +1,19 @@
+#version 120
+#define saturate(x) clamp(x,0.0,1.0)
+#define lerp mix
+#line 2
+uniform vec3 camPos;
+
+varying vec2 texCoord;
+varying vec3 lVec;
+
+void main(){
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+
+ texCoord = gl_Vertex.xz * 0.0625;
+
+ lVec = 0.005 * (camPos - gl_Vertex.xyz).xzy;
+}
+
+
+