CVS: data/Effects landmass.eff,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/Effects
In directory baron.flightgear.org:/tmp/cvs-serv17286/Effects
Modified Files:
landmass.eff
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.eff
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Effects/landmass.eff,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- landmass.eff 8 Oct 2009 02:53:37 -0000 1.3
+++ landmass.eff 27 Mar 2010 14:02:57 -0000 1.4
@@ -2,6 +2,9 @@
<PropertyList>
<name>Effects/landmass</name>
<inherits-from>Effects/terrain-default</inherits-from>
+ <parameters>
+ <snow-level><use>/sim/rendering/snow-level-m</use></snow-level>
+ </parameters>
<technique n="9">
<predicate>
<and>
@@ -56,14 +59,22 @@
<fragment-shader>Shaders/landmass.frag</fragment-shader>
</program>
<uniform>
- <name>NoiseTex</name>
- <type>sampler-3d</type>
- <value type="int">0</value></uniform>
+ <name>NoiseTex</name>
+ <type>sampler-3d</type>
+ <value type="int">0</value>
+ </uniform>
<uniform>
<name>BaseTex</name>
<type>sampler-2d</type>
<value type="int">1</value>
</uniform>
+ <uniform>
+ <name>snowlevel</name>
+ <type>float</type>
+ <value type="float">
+ <use>snow-level</use>
+ </value>
+ </uniform>
</pass>
</technique>
</PropertyList>
------------------------------------------------------------------------------
Download Intel® 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