Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3422 in orxonox.OLD


Ignore:
Timestamp:
Feb 26, 2005, 7:14:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: skysphere now shows Material.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/skysphere.cc

    r3421 r3422  
    7070  this->setTexture(fileName);
    7171  this->skyMaterial->setIllum(3);
    72   this->skyMaterial->setAmbient(.5, .5, 1.0);
     72  this->skyMaterial->setAmbient(1.0, 1.0, 1.0);
    7373}
    7474
     
    112112void Skysphere::draw()
    113113{
     114  glEnable(GL_TEXTURE_2D);
    114115  skyMaterial->select();
    115116  glPushMatrix();
     
    122123  gluSphere(sphereObj, sphereRadius, 20, 20);
    123124  glPopMatrix();
     125  glDisable(GL_TEXTURE_2D);
     126
    124127}
    125 
    126 
Note: See TracChangeset for help on using the changeset viewer.