diff options
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; } |