[Flightgear-devel] Rendering passes question

2012-07-18 Thread Renk Thorsten
May I ask yet another dumb question? In the first rendering pass of default terrain rendering, we use default.vert and terrain-nocolor.frag as shaders. I have so far mindlessly copied the first pass since I had no real clue as to what it is for. Its purpose seems to be to establish that

Re: [Flightgear-devel] Rendering passes question

2012-07-18 Thread Tim Moore
On Wed, Jul 18, 2012 at 8:27 AM, Renk Thorsten thorsten.i.r...@jyu.fi wrote: May I ask yet another dumb question? Yes, although this isn't a dumb question. In the first rendering pass of default terrain rendering, we use default.vert and terrain-nocolor.frag as shaders. I have so far

Re: [Flightgear-devel] Rendering passes question

2012-07-18 Thread Renk Thorsten
The main reason to render textures at this stage is that textures with transparency do change the fragments that are rendered. Calculating the fog color seems wrong, but I don't have the sources in front of me and gitorious is acting up. So since we're not using transparent textures for

Re: [Flightgear-devel] Rendering passes question

2012-07-18 Thread Frederic Bouvier
So, was there a reason we texture and fog during the first pass and should I see any unexpected side effects, or can I simply use the trivial shaders and get my 12% framerate? The main reason to render textures at this stage is that textures with transparency do change the fragments that