You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️Issues not using this template will be systematically closed.
Describe the bug
LightManager.Builder.castLight functionally does nothing as far as I can tell. I've tried this with DIRECTIONAL, POINT, and SUN lights.
To Reproduce
Steps to reproduce the behavior:
Use LightManager.Builder to build a DIRECTIONAL light.
Ensure that you specify castShadows(true)
Ensure that you specify castLight(false) on the builder
(optional) Set the light intensity to something obscene; something that would be noticeable if it were emitting light.
Add the light to the scene, etc...
Expected behavior
As the code documentation suggests, I expect to see shadows, but no light emitted. "In some situations it can be useful to have a light in the scene that doesn't actually emit light, but does cast shadows."
Smartphone (please complete the following information):
Device: Samsung Galaxy Tab S8+ (tablet)
OS: Android 14.0
Additional context
This can also be seen on an emulated Android 14 device in Android Studio with an OpenGL pipeline on a RTX 2080
The text was updated successfully, but these errors were encountered:
Minor correction: setting castLight to false DOES appear to fully disable lighting for some light types (point light), but does not show shadows as the documentation suggests. For the directional light type, setting the bool doesn't appear to affect anything.
Thank you for the explanation - that makes sense, I was curious how a shadow could exist without there being light to occlude. I think the wording of the code comment for castLight is a little confusing in this regard.
Thanks for the quick response. I look forward to working with Filament more.
Describe the bug
LightManager.Builder.castLight functionally does nothing as far as I can tell. I've tried this with DIRECTIONAL, POINT, and SUN lights.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As the code documentation suggests, I expect to see shadows, but no light emitted.
"In some situations it can be useful to have a light in the scene that doesn't actually emit light, but does cast shadows."
Smartphone (please complete the following information):
Additional context
This can also be seen on an emulated Android 14 device in Android Studio with an OpenGL pipeline on a RTX 2080
The text was updated successfully, but these errors were encountered: