fixed various bugs in path tracing.
now all kinds of lighting effects work correctly.
corrected error in refraction