More tweaks ...
This commit is contained in:
+8
-8
@@ -248,8 +248,8 @@ void SGSky::postDraw( float alt ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SGSky::add_cloud_layer( double span, double asl,
|
void SGSky::add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
ssgSimpleState *state ) {
|
ssgSimpleState *state ) {
|
||||||
SGCloudLayer *layer = new SGCloudLayer;
|
SGCloudLayer *layer = new SGCloudLayer;
|
||||||
layer->build( span, asl, thickness, transition, state );
|
layer->build( span, asl, thickness, transition, state );
|
||||||
@@ -273,19 +273,19 @@ void SGSky::add_cloud_layer( double span, double asl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SGSky::add_cloud_layer( double span, double asl,
|
void SGSky::add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
const string &tex_path ) {
|
const string &tex_path ) {
|
||||||
ssgSimpleState *state = SGCloudMakeState( tex_path );
|
ssgSimpleState *state = SGCloudMakeState( tex_path );
|
||||||
add_cloud_layer( span, asl, thickness, transition, state );
|
add_cloud_layer( asl, thickness, transition, span, state );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SGSky::add_cloud_layer( double span, double asl,
|
void SGSky::add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
SGCloudType type ) {
|
SGCloudType type ) {
|
||||||
if ( type > 0 && type < SG_MAX_CLOUD_TYPES ) {
|
if ( type > 0 && type < SG_MAX_CLOUD_TYPES ) {
|
||||||
add_cloud_layer( span, asl, thickness, transition, cloud_mats[type] );
|
add_cloud_layer( asl, thickness, transition, span, cloud_mats[type] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -153,14 +153,14 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add a cloud layer (above sea level in meters)
|
// add a cloud layer (above sea level in meters)
|
||||||
void add_cloud_layer( double span, double asl,
|
void add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
SGCloudType type );
|
SGCloudType type );
|
||||||
void add_cloud_layer( double span, double asl,
|
void add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
const string &tex_path );
|
const string &tex_path );
|
||||||
void add_cloud_layer( double span, double asl,
|
void add_cloud_layer( double asl, double thickness,
|
||||||
double thickness, double transition,
|
double transition, double span,
|
||||||
ssgSimpleState *state );
|
ssgSimpleState *state );
|
||||||
|
|
||||||
inline int get_num_layers() const { return cloud_layers.size(); }
|
inline int get_num_layers() const { return cloud_layers.size(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user