lightcurve generation error
fixed refraction error

ray angle calculation error