And I think maybe the outlines have something to do with the entity. Here is the code how I rendering shadow:
extension Entity {
func enumerateHierarchy(_ body: (Entity, UnsafeMutablePointer<Bool>) -> Void) {
var stop = false
func enumerate(_ body: (Entity, UnsafeMutablePointer<Bool>) -> Void) {
guard !stop else {
return
}
body(self, &stop)
for child in children {
guard !stop else {
break
}
child.enumerateHierarchy(body)
}
}
enumerate(body)
}
}
entity.enumerateHierarchy { child, stop in
child.components.set(GroundingShadowComponent(castsShadow: true))
}
And it seems that Grounding shadows do require virtual geometry in order to render. When I remove the plane, the grounding shadow disappears.
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: