added type for emission surface
added calculation of emission point and direction