diff --git a/Package.resolved b/Package.resolved index b54d368..e741048 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/frzi/GLTFSceneKit", "state": { "branch": null, - "revision": "8bd50d2887c4e0ccc50b9e576768c1800ae15c50", - "version": "0.3.0" + "revision": "589cac03b34a7f5103d14b3741bfcd8add417593", + "version": null } } ] diff --git a/Sources/Model3DView/Model3DView.swift b/Sources/Model3DView/Model3DView.swift index cf9d8cf..1f9cfe1 100644 --- a/Sources/Model3DView/Model3DView.swift +++ b/Sources/Model3DView/Model3DView.swift @@ -82,7 +82,7 @@ public struct Model3DView: ViewRepresentable { #endif // Anti-aliasing. - // If the screen's pixel ratio is above 1 we disable anti-aliasing. Otherwise use MSAAx2. + // If the screen's pixel ratio is above 2 we disable anti-aliasing. Otherwise use MSAAx2. // This may become a view modifier at some point instead. #if os(macOS) let screenScale = NSScreen.main?.backingScaleFactor ?? 1 @@ -90,7 +90,7 @@ public struct Model3DView: ViewRepresentable { let screenScale = UIScreen.main.scale #endif - view.antialiasingMode = screenScale > 1 ? .none : .multisampling2X + view.antialiasingMode = screenScale > 2 ? .none : .multisampling2X context.coordinator.camera = context.environment.camera context.coordinator.setView(view)