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
Loading lights from a GLTF requires the KHR_lights extension.
See this Issue for further information.
That means it is not in the standard spec for GLTF 2.0.
The gltf crate does however support at least the KHR_lights_punctualextension, so I guess support for punctual lights could be added pretty effortlessly.
However I do not know, why it has not been done yet.
Apart form that, it seems to me, that because of this answer, that only punctual, directional and spot lights can be included and no ambient lights. Since bevy does not support directional or spot lights (correct me if I am wrong) the only supported light type would be punctual lights.
karroffel
added
A-Assets
Load files from disk to use for things like images, models, and sounds
C-Feature
A new feature, making something new possible
labels
Jan 30, 2021
Bevy has supported Directional, Point, and Spot lights for some time now, and looking through the bevy_gltf code right now I see that they are all being loaded. It seems like it should all be resolved.
Currently, the GLTF loader loads meshes, textures, materials, scenes ... but it does not load lights.
Why that limitation? Can we load lights from GLTF?
The text was updated successfully, but these errors were encountered: