Fixed inverted ray direction in emission functions.