Revert "globalshade is no longer a global"

This reverts commit 76e4a696f58371771cf04082a4d9f329168b024f.
globalpicnum is no longer a global