Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 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.