Hi,
Yeah the Max3Vect was an oldy function which didn't check for = cases or NAN etc, so I decided to check it another way, but that code should ok
If some of the pixels are not getting lit then its probably the dot check on the point in triangle test.
Yeah the Max3Vect was an oldy function which didn't check for = cases or NAN etc, so I decided to check it another way, but that code should ok
Function Max3Vect(a#,b#,c#) If a<0 Then a=-a If b<0 Then b=-b If c<0 Then c=-c If a>b And a>c Then Return 1 If b>a And b>c Then Return 2 If c>a And c>b Then Return 3 If a=b Then a=a+0.00001 If b=c Then b=b+0.00002 If c=a Then c=c+0.00003 Return Max3Vect(a,b,c);eww End Function
If some of the pixels are not getting lit then its probably the dot check on the point in triangle test.