         leftSceneView.pointOfView = leftCameraNode
         rightSceneView.pointOfView = rightCameraNode
         
-//        let ligth = SCNLight()
-        
     }
     
     /// Create focal spot

//  Created by sheldon on 2016/11/17.
//  Copyright © 2016年 kankan. All rights reserved.
//

import UIKit
import QuartzCore

                
                let currentAttitude = motion.attitude

                if UIApplication.shared.statusBarOrientation == UIInterfaceOrientation.landscapeRight {
                    
                    self.leftCameraRollNode.eulerAngles.z = Float(currentAttitude.pitch)
                    self.rightCameraRollNode.eulerAngles.z = Float(currentAttitude.pitch)
                    
                    self.leftCameraPitchNode.eulerAngles.x = Float(-currentAttitude.roll)
                    self.rightCameraPitchNode.eulerAngles.x = Float(-currentAttitude.roll)
                    
                    self.leftCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
                    self.rightCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
                    
                } else {
                
                    self.leftCameraRollNode.eulerAngles.z = Float(-currentAttitude.roll)
                    self.rightCameraRollNode.eulerAngles.z = Float(-currentAttitude.roll)
                    
                    self.leftCameraPitchNode.eulerAngles.x = Float(currentAttitude.pitch)
                    self.rightCameraPitchNode.eulerAngles.x = Float(currentAttitude.pitch)
                    
                    self.leftCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
                    self.rightCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
                }
            }
        }
    }
