shadow: limit max blur
gl: set max scratch size to 512