Lights Properties Can't Change
vtkLights aren't fully exposed in iMSTK yet. The properties of the lights ara set during construction but can't change during runtime. If we change an imstkLight's properties the corresponding vtkLight does not change. These properties depends on the light type, but to give an idea these includes:
- Position (perhaps a light is moving with a tool)
Typically there are few lights. Most often just 1.
Looping through all of the scene's lights and updating the corresponding vtkLight every render is fine. Lights are generally few in medical scenarios and their data members are small.
See updateRenderDelegates call: https://gitlab.kitware.com/iMSTK/iMSTK/-/blob/master/Source/Rendering/VTKRenderer/imstkVTKRenderer.cpp#L424