Jump to content
  • Advertisement
Sign in to follow this  

Blur on FBO texture

This topic is 1138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i need to call blur texture attached to FBO about 5 times.



however i am not sure if i need to switch over two different fbos (so one blurs texture from another) or i could just do thing like:


enable blur shader

for (int i=0; i < 5; i++)




do i need to switch over two fbos or theres a better way to do it?

Share this post

Link to post
Share on other sites

You need 2 fbo targets, since you can't read and write to the same texture.

So first pass would be, original texture blurred in a shader and written to fbo1

and after that you pingpong fbo1 and fbo2. So read from one, blur it and write to the other one, then flip them so you accumulate the blur.


That's a common way of doing multiple blur passes, else you could maybe use a compute shader and read write from same memory, but no idea about that, never used them.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!