CVS: data/Shaders urban.frag,1.9,1.10

Frederic Bouvier <[email protected]> Sat, 10 Apr 2010 16:07:57 -0500
Newsgroups gmane.games.flightgear.cvc
Message-ID <[email protected]>
Update of /var/cvs/FlightGear-0.9/data/Shaders
In directory baron.flightgear.org:/tmp/cvs-serv27596/Shaders

Modified Files:
	urban.frag 
Log Message:
Remove snow from streets

Index: urban.frag
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/urban.frag,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- urban.frag	10 Apr 2010 17:33:16 -0000	1.9
+++ urban.frag	10 Apr 2010 21:07:52 -0000	1.10
@@ -127,7 +127,7 @@
 
 	vec4 finalColor = texture2D(BaseTex, uv);
 	finalColor = mix(finalColor, clamp(n+nvL[2]*4.1+vec4(0.1, 0.1, nvL[2]*2.2, 1.0), 0.7, 1.0),
-			step(0.8,Nz)*smoothstep(snowlevel+300.0, snowlevel+360.0, (rawpos.z)+nvL[1]*3000.0));
+			step(0.8,Nz)*(1.0-emis)*smoothstep(snowlevel+300.0, snowlevel+360.0, (rawpos.z)+nvL[1]*3000.0));
 	finalColor *= ambient_light;
 	
 	if (gl_Fog.density == 1.0)


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev