Writing a photon shader

hi
I am writing a special material shader for mental ray and I want to use photonmapping. I found the method "mi_compute_irradiance" to gather the photons after shooting. But I need the incoming direction of the photons. In Maya you can see that this direction is stored with every photon, but I did not find any possibility to get it. If anybody can give some help, it would be very nice :slight_smile: