CVS: data/Shaders landmass.frag,1.3,1.4

Stuart Buchanan <[email protected]>
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-serv17286/Shaders

Modified Files:
	landmass.frag 
Log Message:
Allow the snow level of the landmass shader to be set from the property system, and expose it in the rendering dialog. Could be used in future to set the snow level based on the current weather.


Index: landmass.frag
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/landmass.frag,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- landmass.frag	12 Feb 2010 14:44:46 -0000	1.3
+++ landmass.frag	27 Mar 2010 14:02:57 -0000	1.4
@@ -8,12 +8,13 @@
 
 uniform sampler3D NoiseTex;
 uniform sampler2D BaseTex;
+uniform float snowlevel;
 
+// From /sim/rendering/snow-level-m
 const float scale = 1.0;
 
 void main (void)
 {
-	const float snowlevel=2000.0;
 	vec4 noisevec   = texture3D(NoiseTex, (rawpos.xyz)*0.01*scale);
 	vec4 nvL   = texture3D(NoiseTex, (rawpos.xyz)*0.00066*scale);
 


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.