What I'm doing here is just checking  ```if (renderMode != SHADOW_RENDER_MODE)``` once rather than several times.