I’ve this code:
let digital camera = PerspectiveCamera()
digital camera.rework = Remodel(pitch: -Float.pi / 2, yaw: 0, roll: 0)
digital camera.place = SIMD3(5, 5, 5)
anchor.addChild(digital camera)
let mild = DirectionalLight()
mild.rework = digital camera.rework
anchor.addChild(mild)
let mannequin = attempt! await ModelEntity(named: "lightning.usdz")
mannequin.place = SIMD3(5, 3, 5)
anchor.addChild(mannequin)
There is a black artifact on the heart of the display (see the tiny dot on the heart of the mannequin within the screenshot).
I can affirm that I’m utilizing the identical lightning.usdz file from my SceneKit app which was rendering fantastic. This solely seems once I migrate to RealityKit. So the USDZ file ought to be fantastic. The difficulty is in RealityKit.
You’ll be able to obtain my challenge right here: https://drive.google.com/file/d/1K4m0g84fDJ3_rT8TKFM92jmawTKjYXfG/view?usp=sharing
I can affirm that is associated to the customized mild entity, as a result of once I set mild’s depth to 0, the artifact is gone (in fact I can not simply use the default lighting for my sport, I’ve to make use of my customized lighting).
mild.mild.depth = 0


