]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/newcloud.hxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / sky / newcloud.hxx
index f6e55733dec0bff9479867eb2182bb657c108523..88edf19c4bba181683b57d8f16cf449733db3494 100644 (file)
@@ -28,6 +28,7 @@
 #include <vector>
 #include <osg/Fog>
 
+#include <simgear/math/sg_random.h>
 #include <simgear/scene/material/Effect.hxx>
 #include <simgear/scene/material/EffectGeode.hxx>
 
@@ -40,7 +41,7 @@ using std::vector;
 class SGNewCloud {
 
 public:
-        SGNewCloud(const SGPath &texture_root, const SGPropertyNode *cld_def);
+        SGNewCloud(const SGPath &texture_root, const SGPropertyNode *cld_def, mt* s);
 
         ~SGNewCloud();
 
@@ -84,7 +85,7 @@ private:
         
         // The density of the cloud is the shading applied
         // to cloud sprites on the opposite side of the cloud
-        // from the sun. For an invidual cloud instance a value
+        // from the sun. For an individual cloud instance a value
         // between min_density and max_density is chosen.
         float min_density;
         float max_density;
@@ -100,9 +101,11 @@ private:
         osg::Geometry* quad;
         osg::ref_ptr<simgear::Effect> effect;
         static float sprite_density;
+        
+        // RNG seed for this cloud
+        mt* seed;
 
         osg::Geometry* createOrthQuad(float w, float h, int varieties_x, int varieties_y);
-
 };