1
0
Fork 0
the 3D clouds now respect changes to the environment caused by updated METAR etc.

It also increases the AlphaFunc as suggested by Tim.
This commit is contained in:
fredb 2008-12-14 18:48:00 +00:00
parent 404c3c863a
commit 35f973ece1

View file

@ -217,7 +217,7 @@ void FGClouds::buildLayer(int iLayer, const string& name, double alt, double cov
for(double py = 0.0; py < SGCloudField::fieldSize; py += grid_y_size) {
double x = px + grid_x_rand * (sg_random() - 0.5) - (SGCloudField::fieldSize / 2.0);
double y = py + grid_y_rand * (sg_random() - 0.5) - (SGCloudField::fieldSize / 2.0);
double z = alt + grid_z_rand * (sg_random() - 0.5);
double z = grid_z_rand * (sg_random() - 0.5);
double choice = sg_random();
for(int i = 0; i < CloudVarietyCount ; i ++) {