4 #include "ImportClouds.h"
11 return rand() / (float) RAND_MAX;
14 namespace osgCloudyDay
66 void AddCloudBox(
int box_iter, osg::Vec3 origin, osg::Vec3 sizes, osg::Vec3 cloud_size, osg::Vec3 jitter_sizes,
bool buttom,
float s, osg::Vec4 min_max_scale, osg::Vec4 density = osg::Vec4(1.0f,1.0f,1.0f,1.0f));
80 void AddCloudBox(
CloudCreateVolume* volume,
int box_iter, osg::Vec3 origin, osg::Vec3 sizes, osg::Vec3 cloud_size, osg::Vec3 jitter_sizes,
bool buttom, osg::Vec4 density = osg::Vec4(1.0f,1.0f,1.0f,1.0f));
90 void AddBox(osg::ref_ptr<osg::Vec3Array> box_triangles, osg::Vec3 posHelper, osg::Vec3 size);
101 osg::ref_ptr<osg::Geode> dBoxes;
103 static float* m_frands;
113 static int m_iterFloatRand;
115 osg::ref_ptr<osg::Vec3Array> dBoxes_vertices;
116 std::vector<unsigned short> dBoxes_indices;
117 osg::ref_ptr<osg::Geometry> dBoxes_geometry;
121 osg::Vec3 m_middlepoint;