some refactors.

camera now only focuses on generating the ray, shading part moved to
tracer.