correctly handle SHADOW_RENDER_MODE in a bunch of places that were drawing shadows when they shouldn't