remove duplicate include
Fix shader reading being unreliable.
Fix offsets, remove a hack, comment.
Much nicer gradient generation. This will probably make its way into texture utils.
Improve FPS counter, log all frame skips.