Pose-free 3D Gaussian splatting via shape-ray estimation