- // look up the appropriate cloud state
- FGNewMat *m;
-
- switch ( type ) {
- case SG_CLOUD_OVERCAST:
- m = material_lib.find( "CloudOvercast" );
- layer_state = m->get_state();
- break;
- case SG_CLOUD_MOSTLY_CLOUDY:
- m = material_lib.find( "CloudMostlyCloudy" );
- layer_state = m->get_state();
- break;
- case SG_CLOUD_MOSTLY_SUNNY:
- m = material_lib.find( "CloudMostlySunny" );
- layer_state = m->get_state();
- break;
- case SG_CLOUD_CIRRUS:
- m = material_lib.find( "CloudCirrus" );
- layer_state = m->get_state();
- break;
- }