ejeinc / MetalScope

Metal-backed 360° panorama view for iOS
MIT License
324 stars 72 forks source link

Update `SCNSceneRendererDelegate` implementation inside `StereoView` #8

Closed junpluse closed 7 years ago

junpluse commented 7 years ago

Unless the device orientation is updated in StereoRenderer.scnRenderer’s delegate methods (not SCNView’s), the display timing will be the next frame.

Also replace public setSceneRendererDelegate(_:for:) method with sceneRenderDelegate property at StereoView. The delegate methods are called before drawing both eyes, but only renderer(_:didRenderScene:atTime:) is called after the drawing of both eyes is finished.