Board index FlightGear Development Effects and shaders

Red to Gray Filter

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

Red to Gray Filter

Postby xcvb » Thu Feb 15, 2018 9:23 pm

Today I tried the anaglyph 3D feature and I was annoyed by red objects. With this little red-to-gray filter (I replaced IR-vision):

Code: Select all
vec3 IR_vision (in vec3 color) {
   color.g = (color.g > color.r)?color.g:color.r;
   color.b = (color.b > color.r)?color.b:color.r;
   return color;
}


I get a result which is less exhausting to watch.

Before:
Image

After:
Image

Maybe this is useful for someone.
xcvb
 
Posts: 77
Joined: Sat Mar 14, 2015 2:08 pm
Version: 2018.1.1
OS: Fedora 27

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 3 guests