added global intensity function

Global intensity will lower any individually set intensity if the
individually set intensity is greater than the global intensity