summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index b443905..85aa01c 100644
--- a/vis.c
+++ b/vis.c
@@ -298,7 +298,11 @@ toonshader(FSparams *sp)
va = getvattr(&sp->v, "intensity");
intens = va->n;
- intens = intens > 0.85? 1: intens > 0.60? 0.80: intens > 0.45? 0.60: intens > 0.30? 0.45: intens > 0.15? 0.30: 0;
+ intens = intens > 0.85? 1:
+ intens > 0.60? 0.80:
+ intens > 0.45? 0.60:
+ intens > 0.30? 0.45:
+ intens > 0.15? 0.30: 0.15;
return Pt3(intens, 0.6*intens, 0, 1);
}