diff options
author | Christoph Helma <helma@in-silico.ch> | 2018-02-15 19:35:16 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2018-02-15 19:35:16 +0100 |
commit | e5511608cce3236277266d67ddf521ac80df246b (patch) | |
tree | eafc790f2d2f7d6241dce2c92986d13181998765 /shader.frag | |
parent | d3f4d3285d1be8a6445bae43827961c44880033b (diff) |
cc params
Diffstat (limited to 'shader.frag')
-rw-r--r-- | shader.frag | 3 |
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; } |