예제 #1
0
        private void CognitiveVR_Manager_TickEvent()
        {
            if (helper == null) //if there's a scene change and camera is destroyed, replace helper
            {
                helper = CameraTransform.gameObject.AddComponent <CommandBufferHelper>();
                helper.Initialize(rt, CameraComponent, OnHelperPostRender);
            }

            Vector3 viewport = GetViewportGazePoint();

            viewport.z = 100;
            var viewportray = CameraComponent.ViewportPointToRay(viewport);

            helper.Begin(GetViewportGazePoint(), viewportray);
        }