Closed 11bitbadger closed 1 year ago
A SceneBuilder has a method AddLight, which takes a LightBuilder but I can not create a LightBuilder. I assume if I wanted to add a Directional light I should be using LightBuilder.Directional() but there is no public constructor.
SceneBuilder
AddLight
LightBuilder
LightBuilder.Directional()
How do I add a new light to a scene?
You're right; the current API allows importing a lights from an existing glTF but it doesn't allow creating lights from scratch.
I'll add public APIs for it, stay tuned.
A
SceneBuilder
has a methodAddLight
, which takes aLightBuilder
but I can not create aLightBuilder
. I assume if I wanted to add a Directional light I should be usingLightBuilder.Directional()
but there is no public constructor.How do I add a new light to a scene?