]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/stars.cxx
Cloud texcoord fixes to tie apparent cloud position to earth even though
[simgear.git] / simgear / sky / stars.cxx
index 2b194b7f8db11cae06a43477811fab6cd232ee5c..42a347327a82950cbd40c9f292bbc232f70ce534 100644 (file)
 
 #include "stars.hxx"
 
+#ifdef _MSC_VER
+FG_USING_STD(cout);
+FG_USING_STD(endl);
+#endif 
 
 // Set up star rendering call backs
 static int sgStarPreDraw( ssgEntity *e ) {
@@ -84,6 +88,8 @@ ssgBranch * SGStars::build( int num, sgdVec3 *star_data, double star_dist ) {
     state->disable( 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->disable( GL_ALPHA_TEST );