From e5511608cce3236277266d67ddf521ac80df246b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 15 Feb 2018 19:35:16 +0100 Subject: cc params --- shader.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shader.frag') 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; } -- cgit v1.2.3