+
+
+// make an ssgSimpleState for a cloud layer given the named texture
+ssgSimpleState *SGCloudMakeState( const string &path ) {
+ ssgSimpleState *state = new ssgSimpleState();
+
+ state->setTexture( (char *)path.c_str() );
+ state->setShadeModel( GL_SMOOTH );
+ state->disable( GL_LIGHTING );
+ state->disable( GL_CULL_FACE );
+ state->enable( GL_TEXTURE_2D );
+ state->enable( GL_COLOR_MATERIAL );
+ state->setColourMaterial( GL_AMBIENT_AND_DIFFUSE );
+ state->setMaterial( GL_EMISSION, 0, 0, 0, 1 );
+ state->setMaterial( GL_SPECULAR, 0, 0, 0, 1 );
+ state->enable( GL_BLEND );
+ state->enable( GL_ALPHA_TEST );
+ state->setAlphaClamp( 0.01 );
+
+ return state;
+}