ProtoArt / spritec

The Sprite Compiler turns your 3D models into 2D spritesheets
https://protoart.me/
Mozilla Public License 2.0
32 stars 5 forks source link

Ability to query lights by name #209

Closed sunjay closed 4 years ago

sunjay commented 4 years ago

This is some work I did during reading week. I didn't want to add any features at the time since we were preparing for a release, so I didn't end up making a PR at the time.

This PR adds the ability to query lights by name and use specific lights from a glTF file when rendering with spritec. The changes here are largely similar to #152, though this does not add support for querying lights from the config. This is a feature that is largely meant to be accessible through the UI and used in the showcase we're creating.

There is now a LightQuery::Named {..} that you can use to select a single light with the given name in a scene.