assimp/code/glTF2
petrmohelnik 9330cca1cd glTF 2.0 Lights import
Importing of lights according to glTF 2.0 extension KHR_lights_punctual https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual

Since glTF lights are based on PBR they use different attenuation model than conventional lights supported by assimp. It is possible to use attenuation factors in assimp to describe inverse square law fallof. But the light structure does not provide means to save range property. Therefore I resorted to use of metadata. When range parameter is present, I put it into 'PBR_LightRange' metadata of light's node. Please, see comment in glTF2Importer file.
2019-08-03 20:51:00 +02:00
..
glTF2Asset.h glTF 2.0 Lights import 2019-08-03 20:51:00 +02:00
glTF2Asset.inl glTF 2.0 Lights import 2019-08-03 20:51:00 +02:00
glTF2AssetWriter.h Reorg of code. 2019-06-06 14:45:43 +02:00
glTF2AssetWriter.inl glTF 2.0 Lights import 2019-08-03 20:51:00 +02:00
glTF2Exporter.cpp Fix the compile pass, still unresolved symbols. 2019-06-10 23:26:00 +02:00
glTF2Exporter.h Reorg of code. 2019-06-06 14:45:43 +02:00
glTF2Importer.cpp glTF 2.0 Lights import 2019-08-03 20:51:00 +02:00
glTF2Importer.h Reorg of code. 2019-06-06 14:45:43 +02:00