Matter of preference, but I like

```python
shaderEnabled = not shaderEnabled
if not shaderEnabled:
    resetShader()
```