YAL code - flat shaded?

Blitz3D Forums/Blitz3D Programming/YAL code - flat shaded?

OK, I've narrowed it down to this:

I simply need a way (in YAL), to get the vertex indices of the triangle which the current lumel is on, when adding light to a lumel.

Anyone got any ideas? (Sswift? You've worked on YAL).