summaryrefslogtreecommitdiff
path: root/shader.frag
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2018-02-15 19:45:33 +0100
committerChristoph Helma <helma@in-silico.ch>2018-02-15 19:45:33 +0100
commitcbe481d6cb93cc87188d1f791296ba7e74a21b9b (patch)
tree47ffb5126a81957bf032532cf5b42af32eb55e51 /shader.frag
parente5511608cce3236277266d67ddf521ac80df246b (diff)
pgm change
Diffstat (limited to 'shader.frag')
-rw-r--r--shader.frag4
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;
}