There's a SpriteBatch
constructor that takes in a ShaderProgram
. You can also set it using setShader()
.
Make sure you include the required vertex attributes and uniforms in your shader however (see the SpriteBatch
code), as the SpriteBatch
will want to set these.