BGE Brightness / Contrast Filter

  • April 01, 2016
  • 3,626 Downloads
  • 2 Likes
  • Blender 2.7x
  • Render: Blender Internal
  • Creator: RedFrost
  • License: CC-0
You must be logged in to download.

Description:

My first ever 2d filter!

add brightness and contrast to you drab game with this filter. The tweak-able values are in the script to change the brightness and contrast. I hope you enjoy this very first 2d filter of mine! More coming soon.

By the way, hold space to toggle the filter on and off.

Preview

Tile texture from Textures.com

Comments:

  • CaptainRex profile picture
    CaptainRex

    Looks awesome! Looking forward to more ; )

    Cheers, Rex

    Written April 02, 2016
  • Koyaanisquatsy profile picture
    Koyaanisquatsy

    Cool! This looks really nice!

    Written April 02, 2016
  • OliverMH profile picture
    OliverMH

    Nice idea. I did a lot of post processing in game engines but never BGE.

    You should really avoid series of if statements since they perform poorly (they also tend to introduce artifacts like banding). Try to use functions suited for GPUs instead.

    Here's a very simple brigthness/contrast shader which should do a better job: Screenshot

    Written April 02, 2016
  • RedFrost profile picture
    RedFrost

    Wow thank you, that looks so much nicer. I did not understand your use of color = ((color-0.5)*max(contrast,0))+0.5; because that made it so a contrast of 1 and a brightness of 1 were not default color so I change it to color = ((color-1)*max(contrast,0));

    Edited April 02, 2016
  • rz3x profile picture
    rz3x

    Good! Thanx!!

    Written November 28, 2016