https://helpx.adobe.com/photoshop/using/create-panoramic-images-photomerge.html
Create 360-degree panoramas
Devices such as the Ricoh Theta V and Insta360One let you capture full 360 panoramic images in a single take. Alternatively, you can combine Photomerge with 3D features to create a 360-degree panorama. First, you stitch together the images to create a panorama; then you use the Spherical Panorama command to wrap the panorama so it’s continuous.
Be sure to photograph a full circle of images with sufficient overlap. Photographing with a pano head on a tripod helps produce better results.
Choose File > Automate > Photomerge.
In the Photomerge dialog box, add the images you want to use.
Do not include images that cover the top (zenith) or bottom (nadir) of the scene. You’ll add these images later.
Select Spherical for the Layout.
(Optional) Select Vignette Removal or Geometric Distortion for the Lens Correction.
(Optional) Select Content Aware Fill Transparent Areas to avoid transparent pixels on the edges of the panoramic image.
Click OK.
Choose 3D > New Shape From Layer > Spherical Panorama.
(Optional) Manually add the top and bottom images into the sphere. You could also paint out any remaining transparent pixels in the 3D spherical panorama layer.