summaryrefslogtreecommitdiff
path: root/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shader.frag')
-rw-r--r--shader.frag3
1 files changed, 2 insertions, 1 deletions
diff --git a/shader.frag b/shader.frag
index 4bb6810..5492a95 100644
--- a/shader.frag
+++ b/shader.frag
@@ -7,7 +7,7 @@ uniform vec2 resolution;
uniform float ticks;
uniform int program;
-uniform sampler2D images[4];
+uniform sampler2D images[8];
layout (binding = 0,rgba32f) uniform image2D backbuffer;
uniform float ratios[4];
uniform int idx[2];
@@ -31,5 +31,6 @@ void main (void) {
img = texture2D(images[idx[0]],st);
st = coordinates(idx[1]);
img = pow(img, texture2D(images[idx[1]],st));
+ img.rgb = img.rgb*params[0];
fragColor = img;
}