-changed if statments in Light.cpp to avoid deep nesting -move temporary local variables out of loops to avoid constant creation and deletion -added some constexpr variables to the imgui variable to get rid of magic numbers