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
但有一个问题。光效果不错,但没有影子。怎么了?