Changeset 6763 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Jan 26, 2006, 3:20:27 AM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r6651 r6763 95 95 { 96 96 // setting diffuse color 97 glColor 3f (diffuse[0], diffuse[1], diffuse[2]);98 glMaterialfv(GL_FRONT, GL_DIFFUSE, this->diffuse);97 glColor4f (diffuse[0], diffuse[1], diffuse[2], this->transparency); 98 // glMaterialfv(GL_FRONT, GL_DIFFUSE, this->diffuse); 99 99 100 100 // setting ambient color -
trunk/src/lib/graphics/light.cc
r6512 r6763 221 221 222 222 glEnable (GL_LIGHTING); 223 glEnable ( GL_COLOR_MATERIAL ) ; 224 glColorMaterial ( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE ) ; 225 223 226 this->setAmbientColor(.3, .3, .3); 224 227 this->lights = new Light*[NUMBEROFLIGHTS]; … … 238 241 LightManager::~LightManager () 239 242 { 243 glDisable(GL_COLOR_MATERIAL); 240 244 glDisable(GL_LIGHTING); 241 245 this->setAmbientColor(.0,.0,.0);
Note: See TracChangeset
for help on using the changeset viewer.