【发布时间】:2018-01-05 14:36:31
【问题描述】:
我正在尝试将Spotlight 附加到 ARCamera:
fileprivate lazy var spotLight: SCNLight = {
let spotLight = SCNLight()
spotLight.type = .spot
spotLight.spotInnerAngle = 0
spotLight.spotOuterAngle = 45
spotLight.castsShadow = true
return spotLight
}()
sceneView.pointOfView?.light = spotLight
但是有一个问题。灯光效果很好,但没有阴影。怎么了?
【问题讨论】:
标签: swift xcode scenekit augmented-reality arkit