directionalLight
Adds a DirectionalLight to the current Node as a child and then triggers the callback
Return
the newly created DirectionalLight
Parameters
callback
the callback that is invoked with a DirectionalLight context in order to initialize any values
inline fun SceneGraph<*>.directionalLight(callback: DirectionalLight.() -> Unit = {}): DirectionalLight
Adds a DirectionalLight to the current SceneGraph.root as a child and then triggers the DirectionalLight
Return
the newly created DirectionalLight
Parameters
callback
the callback that is invoked with a DirectionalLight context in order to initialize any values