Yes sir, it's all the rage these days. It's better than panoramas. It's better than selfies. It may even be better than Snapchat! We're finally getting to the moment that you've been waiting for! It's 360-degree photos! We covered a lot of topics in this chapter, which will now make it fairly easy for us to talk about a 360-degree photo viewer. To build one, we'll just make a very big sphere with shader back faces rendered as they were previously. Start with a new empty scene:
- Create a new scene by navigating toFile|New Scene. Then, navigate toFile|Save As...and name itPhotoSphere.
- Add a stationary XR Camera Rig to the scene usingGameObject | XR | Stationary XR Rig.
- Set the XR Rig's Positionto (0,0,0).
Now, to view a 360-degree photo, we simply make a giant sphere with the image on its inside, as follows:
- Create an equirectangular sphere...