summaryrefslogtreecommitdiff
path: root/shaders/humus-hdr/3.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/humus-hdr/3.vert')
-rw-r--r--shaders/humus-hdr/3.vert26
1 files changed, 26 insertions, 0 deletions
diff --git a/shaders/humus-hdr/3.vert b/shaders/humus-hdr/3.vert
new file mode 100644
index 0000000..5addf41
--- /dev/null
+++ b/shaders/humus-hdr/3.vert
@@ -0,0 +1,26 @@
+#version 120
+#define saturate(x) clamp(x,0.0,1.0)
+#define lerp mix
+
+varying vec2 texCoord0;
+varying vec2 texCoord1;
+varying vec2 texCoord2;
+varying vec2 texCoord3;
+
+
+#line 9
+uniform vec2 halfPixel;
+
+void main(){
+ gl_Position = gl_Vertex;
+
+ vec2 texCoord = gl_Vertex.xy * 0.5 + 0.5;
+
+ texCoord0 = texCoord + halfPixel * vec2( 1, 1);
+ texCoord1 = texCoord + halfPixel * vec2(-1, 1);
+ texCoord2 = texCoord + halfPixel * vec2(-1, -1);
+ texCoord3 = texCoord + halfPixel * vec2( 1, -1);
+}
+
+
+