Add "smooth streaks" to projected crosshairs.

This commit is contained in:
Mari the Deer 2022-05-29 17:51:59 +02:00
commit f2af4dd14d
6 changed files with 55 additions and 12 deletions

View file

@ -229,6 +229,11 @@ Class SWWMUtility
return (a<0)?(a+floor(a)):(a-floor(a));
}
static clearscope double lerp( double a, double b, double theta )
{
return a*(1.-theta)+b*theta;
}
static clearscope Color LerpColor( Color a, Color b, double theta )
{
Color c = Color(