Am 28.08.10 12:34, schrieb HB-GRAL: > Am 28.08.10 01:16, schrieb Tim Moore: >> There needs to be some coordinate for the fog. You could try using >> gl_FogFragCoord instead. >> >> Tim > > Thanks for your answer Tim. And what should happen when I change > gl_BackColor.a from 0.0 to 1.0 in default.vert? I see here that this > makes the terrain shaders (or the light) running at least for some older > ATI cards (and .z/.w is def. not the problem). > > What do I loose with this change? What do I have to check? And could > this work for terrain also for other cards with gl_BackColor.a = 1.0? > > Thanks, Yves
Ok, I can keep all the new code now with my older ATI. For my card I only had to add 'if (gl_BackColor == 0.0) { n = -n; }' again in default.frag and that seems finally to work with recent changes. Maybe this makes not a lot of sense, but I do not care anymore ;-) -Yves ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel