diff options
author | rodri <rgl@antares-labs.eu> | 2024-07-13 11:20:22 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-07-13 11:20:22 +0000 |
commit | 310042a543077ffc1f2325c75e99a5e772b908ff (patch) | |
tree | 186b4b56e7b9b166950f0edf3d2c3f9d80569664 | |
parent | f9b1182580fd66857a4a0cc11a328f9856f6039c (diff) | |
download | 3dee-310042a543077ffc1f2325c75e99a5e772b908ff.tar.gz 3dee-310042a543077ffc1f2325c75e99a5e772b908ff.tar.bz2 3dee-310042a543077ffc1f2325c75e99a5e772b908ff.zip |
fix the toon shader.
-rw-r--r-- | vis.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |