I want some simple GLSL shader to apply Bloom effect on a rendered-texture

Posted on 2007-10-11
Last Modified: 2013-12-21
Hi experts,

I'm working on a game engine, and want to add to it a very simple Bloom effect, i don't want to use framebuffers, but want to use fragment shaders that apply on rendered-texture.

i need some GLSL shader to apply on a texture for doing bloom effect on it.
Question by:zaghaghi
    LVL 20

    Expert Comment

    hi zaghaghi,

    at that page is a link to an example with some shaders, doing what you want:

    the code is here, look at watertest/shaders/bloomx.frag & bloomy.frag:

    LVL 9

    Author Comment

    tnx ikework, but the fragment shader there was for specific purpose , and does not work on a simple texture.
    LVL 2

    Accepted Solution

    Bloom effects dont have a standard implemnetation. The simplest way would be to apply a high pass filter to the final rendered image followed by a sum of gaussian blur+reduce operation on this. Then just blend this image with your orignal final image. But this will give bad results as it a very simple model. You would need a render to texture if you dont want to use framebuffers. But I think you should go ahead with framebuffers as they are the future.
    In games every material has a bloom property. When rendering the scene, a separate bloom image is create which store which pixels need to be bloomed. this gives better results.You also need to apply tone mapping

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
    Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now