Right now the rendering code within Engine::draw() doesn't even run if there is no light in the scene. The desired behavior would be for all meshes to render but with ambient light only. The draw loop should be changed to pass an empty slice (or empty iterator?) when there are no lights, and the draw code within polygon should be changed to still render meshes but with only ambient lighting if there are no lights.
Right now the rendering code within
Engine::draw()
doesn't even run if there is no light in the scene. The desired behavior would be for all meshes to render but with ambient light only. The draw loop should be changed to pass an empty slice (or empty iterator?) when there are no lights, and the draw code within polygon should be changed to still render meshes but with only ambient lighting if there are no lights.