CVS: data/Shaders landmass.geom,1.2,1.3
Frederic Bouvier <[email protected]> Sun, 11 Apr 2010 03:37:12 -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-serv11316/Shaders
Modified Files:
landmass.geom
Log Message:
Create effects for shrub type landmass with no or little height. Add a new shrub texture contributed by Yves
Index: landmass.geom
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/landmass.geom,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- landmass.geom 2 Apr 2010 07:06:40 -0000 1.2
+++ landmass.geom 11 Apr 2010 08:36:39 -0000 1.3
@@ -54,28 +54,29 @@
void main(void)
{
- createVertex(0, 1, canopy_height, 0.0);
- createVertex(0, 1, 0.0, 0.0);
- createVertex(1, 0, canopy_height, 0.0);
- createVertex(1, 0, 0.0, 0.0);
- EndPrimitive();
- createVertex(1, 2, canopy_height, 0.0);
- createVertex(1, 2, 0.0, 0.0);
- createVertex(2, 1, canopy_height, 0.0);
- createVertex(2, 1, 0.0, 0.0);
- EndPrimitive();
- createVertex(2, 0, canopy_height, 0.0);
- createVertex(2, 0, 0.0, 0.0);
- createVertex(0, 2, canopy_height, 0.0);
- createVertex(0, 2, 0.0, 0.0);
- EndPrimitive();
-
+ if (canopy_height > 0.01) {
+ createVertex(0, 1, canopy_height, 0.0);
+ createVertex(0, 1, 0.0, 0.0);
+ createVertex(1, 0, canopy_height, 0.0);
+ createVertex(1, 0, 0.0, 0.0);
+ EndPrimitive();
+ createVertex(1, 2, canopy_height, 0.0);
+ createVertex(1, 2, 0.0, 0.0);
+ createVertex(2, 1, canopy_height, 0.0);
+ createVertex(2, 1, 0.0, 0.0);
+ EndPrimitive();
+ createVertex(2, 0, canopy_height, 0.0);
+ createVertex(2, 0, 0.0, 0.0);
+ createVertex(0, 2, canopy_height, 0.0);
+ createVertex(0, 2, 0.0, 0.0);
+ EndPrimitive();
+ createVertex(0, 1, 0.0, 0.0);
+ createVertex(1, 2, 0.0, 0.0);
+ createVertex(2, 0, 0.0, 0.0);
+ EndPrimitive();
+ }
createVertex(0, 1, canopy_height, 1.0);
createVertex(1, 2, canopy_height, 1.0);
createVertex(2, 0, canopy_height, 1.0);
EndPrimitive();
- createVertex(0, 1, 0.0, 0.0);
- createVertex(1, 2, 0.0, 0.0);
- createVertex(2, 0, 0.0, 0.0);
- EndPrimitive();
}
------------------------------------------------------------------------------
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