1
我想光(點)安裝到相機:演員影子節點ARKit現場
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
但有一個問題。光效果不錯,但沒有影子。怎麼了?