diff options
Diffstat (limited to 'pass2.frag')
-rw-r--r-- | pass2.frag | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |