By adding this code to the default SceneKit Xcode project, one can reproduce the issue (the default ship object is blurred when viewed directly by the camera, and sharp when viewed through the semi-transparent square):
Is this something expected, and is there a workaround for making objects seen through semi-transparent objects appear blurred as well?
Code Block cameraNode.camera!.wantsDepthOfField = true cameraNode.camera!.focusDistance = 2 cameraNode.camera!.fStop = 0.5 let plane = SCNNode(geometry: SCNPlane(width: 1, height: 1)) plane.position = SCNVector3(x: 0.5, y: 0, z: 13) plane.opacity = 0.5 scene.rootNode.addChildNode(plane)
Is this something expected, and is there a workaround for making objects seen through semi-transparent objects appear blurred as well?