유니티에서 360화면 캡처

RenderToCubemap을 실행할 때 Mono로 하면 camera rotation에 영향을 안받고, stereo로 하면 받음

public class PanoramaCapture : MonoBehaviour
{
private Camera camera;

public RenderTexture cubemap;
public RenderTexture equirect;

// Start is called before the first frame update
void Start()
{
camera = GetComponent<Camera>();


}

// Update is called once per frame
void Update()
{
// camera.stereoSeparation = 0.064f; // Eye separation (IPD) of 64mm.
camera.RenderToCubemap(cubemap, 63, Camera.MonoOrStereoscopicEye.Left);
cubemap.ConvertToEquirect(equirect);
}
}