traceRay newly implemented