small density calculation fix in raytracer