Board index FlightGear Development Effects and shaders

Water shader

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

Re: Water shader

Postby planetacancun » Mon Dec 06, 2010 12:21 am

Bump :)
Just to thank you ppl. Anyways we could have like different shaders depending on the weather in that given moment, like thunderstorm and calm shaders, for the cloudy days with no direct sun, some crystal clear sun reflection would be awesome for a lake for example, but I have seen some other work in rocks, shaders are looking great :) <- happy guy upgrading GIT as I write.

planetacancun wrote:
gluon wrote:@planetacancun: Sure you can, just do some lines of GLSL code...

At least that video is OpenSceneGraph, so it's not like crazy right :) I was testing the shader posted here and it's pretty cool, it could be better than the actual one. I'm going to leave the coding to the pros here coz I sux :D


3 links I found, might be useful.

IDE for shaders (I'm going to give it a try later):
Some GLSL version of water FP/VP: ... =10&page=1
A test project as demo: ... =33#pid265
Posts: 323
Joined: Thu Jul 30, 2009 4:52 pm
Callsign: Fallen-
IRC name: Fallen-
Version: GIT
OS: Ubuntu

Re: Water shader

Postby gral » Wed Dec 08, 2010 12:41 pm

fredb wrote:
timoore wrote:At a minimum, it is polite to give attribution when you borrow code.

I added an attribution to the vertex and the fragment shader :
Code: Select all
// This shader is mostly an adaptation of the shader found at
// and its glsl conversion
//  available at
//  © Michael Horsch - 2005

By the way, thank you for the fix

Thank you Tim and Fred. Of course it is polite to give attribution to the coders, my comments in GLSL just broke the shader code here and didn’t know where to put this lines, that’s all :oops: . But anyway please change this notice to

Code: Select all
//  This shader is an adaptation of water shaders found at
// and its glsl conversion by mars999, © 2005 Michael Horsch
//  Other parts are an adaption from dangerdeep at, © Thorsten Jordan

btw. where do I add copyright notice for my textures in flightgear?

Thanks, gral
Posts: 325
Joined: Mon Nov 16, 2009 1:03 pm
Location: Zurich (Switzerland)
Callsign: HB-GRAL
Version: GIT

Re: Water shader

Postby Ernest1984 » Mon Jan 03, 2011 1:23 am

Hello. Where can i get the latest version of Water Shadings?
EPWA-hub: ERJ-195 clsgn: ERNIE
Around The World with B1900D!
callsign: AROUNDw - currently suspended till the FG will have a proper look on different locations
User avatar
Posts: 438
Joined: Wed Dec 01, 2010 3:47 pm
Location: Poland / Canada
Callsign: ERNIE
Version: 2.10
OS: Mac OS X 10.8.2


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 0 guests