i rasterize the triangles, calculate the 3d position of each rasterized pixel and trace to the light from there. at the moment i try to do a version which works without ray tracing though.