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.



Maybe this is useful for someone.
Posts: 126
Joined: Sat Mar 14, 2015 2:08 pm
Version: GIT
OS: Linux

Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 1 guest