implemented raycastFromCameraKernel()