aboutsummaryrefslogtreecommitdiff
path: root/pass2.frag
diff options
context:
space:
mode:
Diffstat (limited to 'pass2.frag')
-rw-r--r--pass2.frag7
1 files changed, 4 insertions, 3 deletions
diff --git a/pass2.frag b/pass2.frag
index 3193cb0..3184475 100644
--- a/pass2.frag
+++ b/pass2.frag
@@ -2,11 +2,12 @@
#include "consts.h"
-out vec4 color;
+layout(location = 0) out vec4 color;
in vec4 gl_FragCoord;
-uniform ivec2 window;
-uniform sampler2D buf;
+layout(location = U_LOC_TIME) uniform float time;
+layout(location = U_LOC_PASS1) uniform sampler2D buf;
+layout(location = U_LOC_WINDOW) uniform ivec2 window;
void main() {
vec2 uv = gl_FragCoord.xy / window.xy;