Added option to turn on global randomized shadow calculations.