ref: 310042a543077ffc1f2325c75e99a5e772b908ff
parent: f9b1182580fd66857a4a0cc11a328f9856f6039c
author: rodri <rgl@antares-labs.eu>
date: Sat Jul 13 07:20:22 EDT 2024
fix the toon shader.
--- a/vis.c
+++ b/vis.c
@@ -298,7 +298,11 @@
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);
}