As he said, he needs it in code, so gile[s]'s not the solution here.
Rottbott. You need to be able to read the smooting information, or, you could also use an average smoothing on angles less than say 45° then simply throw some sinus factors onto the lumel brihtness and there you go. the only problem seems to be to involve NX,NY and NZ to determine the angle of two tris (or maybe you need to do it quad-wise?)
Rottbott. You need to be able to read the smooting information, or, you could also use an average smoothing on angles less than say 45° then simply throw some sinus factors onto the lumel brihtness and there you go. the only problem seems to be to involve NX,NY and NZ to determine the angle of two tris (or maybe you need to do it quad-wise?)