Added ability to change number of shadow rays at runtime.