Multiple shader passes LWJGL

Hello,

Im having a simple question, of wich i can hardly find any info.
How to use multiple shader passes on some rendered data?

Usually i can just bind one shader (including one frag and vert shader), and do the drawing.
But how does this work when i want to use 2 vertex shaders and one fragment shader for in example gaussian blur?
And what should i do if i want do do another pass to post process this blurred data?

So i want to do this:

  • one pass horizontal blur
  • one pass vertical blur
  • one pas post processing

Is it possible do do this at once, or do i need to buffer the scene to a fbo each pass?
Thanks in advance :slight_smile: