Posts

Post marked as solved
1 Replies
0 Views
This appears to have been fixed somewhere between 11 beta 5 and 7.The previous viewport code in UpdateSharedUniforms in Renderer.swift: uniforms.pointee.viewMatrix = simd_inverse(frame.camera.transform) uniforms.pointee.projectionMatrix = frame.camera.projectionMatrix(withViewportSize: viewportSize, orientation: .portrait, zNear: 0.001, zFar: 1000)The new code: uniforms.pointee.viewMatrix = frame.camera.viewMatrix(for: .portrait) uniforms.pointee.projectionMatrix = frame.camera.projectionMatrix(for: .portrait, viewportSize: viewportSize, zNear: 0.001, zFar: 1000)Switching from .landscapeRight to .portrait now results in consistent behavior.