Hmm. So, I wanted it to light per-texel, and it does... But I'm also getting some kind of weird z-tearing or whatever. I managed to cut it down to a reasonable level, I think i can leave it here for now. Though I should try and figure out what causes it eventually. The shader doesn't seem to like me flooring values or something. :/