GLTF Light intensity values are way too high
Describe the bug vtkGLTFImporter provided light intensity is way too high and unexpected
To Reproduce Steps to reproduce the behavior: 0. untitled.glb.zip
- build and download https://kitware.github.io/vtk-examples/site/Cxx/IO/GLTFImporter/
- ./GLTFImporter ~/untitled.glb
Additional context According to gltf doc:
Brightness of light in. The units that this is defined in depend on the type of light. point and spot lights use luminous intensity in candela (lm/sr) while directional lights use illuminance in lux (lm/m2)
But VTK expect a [0..1] value, and it is copied directly in https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Import/vtkGLTFImporter.cxx#L649.