complete generateLightTransport function