gl-renderer: Debug modes
This MR proposes to improve debugging of the OpenGL renderer by providing a new system to cycle through various debug modes using a debug binding. Here is the list of new debug modes proposed as a start:
- Wireframe: Blend triangle strip wireframe over a darkened damaged region
- Batches: Tint draw call batches with different colors
- Damage: Highlight damaged region with a red tint
- Opaque: Highlight only the opaque damaged region with a blue tint
The key binding combination is Mod-Shift-Space m
.