Skip to content

How do you add a light? #87

Discussion options

You must be logged in to vote

Did you try using LightNode directly?
I have to admit that we didn't worked/tested this feature a lot since it's rarely used.

You can also handle it manually (Filament Builder without nodes) and add it to the sceneView.scene.
Please let us know the issues you could encounter with LightNode and have a look at how the default main light is handled within the SceneView:

mainLight = LightManager.Builder(LightManager.Type.DIRECTIONAL).apply {
val (r, g, b) = Colors.cct(6_500.0f)
color(r, g, b)
intensity(100_000.0f)
direction(0.28f, -0.6f, -0.76f)
castShadows(

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JohnGilbertson
Comment options

Answer selected by JohnGilbertson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants