syoyo / tinygltf

Header only C++11 tiny glTF 2.0 library
MIT License
2.01k stars 409 forks source link

KHR_lights_punctual: parse light source references from scene nodes #423

Closed agnat closed 1 year ago

agnat commented 1 year ago

Like meshes and cameras light sources are instantiated using scene nodes. This PR implements parsing these light source references. See https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_lights_punctual/README.md#adding-light-instances-to-nodes

syoyo commented 1 year ago

Nice! One thing need to modify: https://github.com/syoyo/tinygltf/pull/423/files#r1219313659

syoyo commented 1 year ago

Thanks! Merged!