SCNNode.light versus SCNNode child nodes
bhagenbuch opened this issue · comments
bhagenbuch commented
In the first example attaching SCNLight
to a new SCNNode
(lightNode
) and adding the node as a child of the camera node had no effect. (The scene wasn't lit.) Attaching the SCNLight
directly to the camera node (using its light
property) worked fine. I don't understand the difference. Some clarification might help newbies like me. [Xcode 9, Swift 4]
bhagenbuch commented
Sorry. Both approaches seem to work.