diff options
author | Christoph Helma <helma@in-silico.ch> | 2018-02-15 19:45:33 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2018-02-15 19:45:33 +0100 |
commit | cbe481d6cb93cc87188d1f791296ba7e74a21b9b (patch) | |
tree | 47ffb5126a81957bf032532cf5b42af32eb55e51 /shader.frag | |
parent | e5511608cce3236277266d67ddf521ac80df246b (diff) |
pgm change
Diffstat (limited to 'shader.frag')
-rw-r--r-- | shader.frag | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |