【发布时间】:2021-09-03 02:53:49
【问题描述】:
我想创建一架飞机:
func getShadowPlane(_ width: Float, _ height: Float) -> ModelEntity {
let sphereResource = MeshResource.generatePlane(width: width,
depth: height)
let myMaterial = ShadowMataerial . ????
return ModelEntity(mesh: sphereResource, materials: [myMaterial])
}
& 将它添加到我的锚点的特定位置。 我想从我的相机获得的 RealityKit 能够捕获/生成的“照明”中获取阴影数据。
我不想用
AnchorEntity(plane: AnchoringComponent.Target.Alignment.horizontal)
知道如何实现吗?
我找不到 shadowCatcher 材质。
【问题讨论】:
标签: swift augmented-reality arkit realitykit