This was built originally as a prototype to a game that never went anywhere so there is some extra code in there for various other things. I was working on a dungeon crawler POC with some friends and ...
As we know from previous tutorials, we can send float data to a shader with uniforms (vec2, vec3, etc). The problem is, however, that we need to flush the SpriteBatch before changing the uniform.