summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-07-13 11:20:22 +0000
committerrodri <rgl@antares-labs.eu>2024-07-13 11:20:22 +0000
commit310042a543077ffc1f2325c75e99a5e772b908ff (patch)
tree186b4b56e7b9b166950f0edf3d2c3f9d80569664
parentf9b1182580fd66857a4a0cc11a328f9856f6039c (diff)
download3dee-310042a543077ffc1f2325c75e99a5e772b908ff.tar.gz
3dee-310042a543077ffc1f2325c75e99a5e772b908ff.tar.bz2
3dee-310042a543077ffc1f2325c75e99a5e772b908ff.zip
fix the toon shader.
-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);
}