Basic kernel skeleton for raytracing