From cbe481d6cb93cc87188d1f791296ba7e74a21b9b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 15 Feb 2018 19:45:33 +0100 Subject: pgm change --- shader.frag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shader.frag') diff --git a/shader.frag b/shader.frag index 5492a95..07b7a28 100644 --- a/shader.frag +++ b/shader.frag @@ -31,6 +31,8 @@ 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]; + if (program != 0) { + img.rgb = img.rgb*params[0]; + } fragColor = img; } -- cgit v1.2.3