Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5333 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Oct 9, 2005, 12:11:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: we do not have to shade the whole world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npc2.cc

    r5325 r5333  
    3232
    3333  this->loadModelWithScale("models/ships/bolido.obj", 3);
    34   this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
     34  this->shader = NULL;
     35  if (likely(Shader::checkShaderAbility()))
     36    this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
    3537
    3638  this->obj = gluNewQuadric();
     
    8587
    8688  if (this->shader != NULL && this->shader != Shader::getActiveShader())
    87   {
    8889    shader->activateShader();
    89   }
    9090  gluSphere(this->obj, 3, 10, 10);
    91   //shader->deactivateShader();
     91  shader->deactivateShader();
    9292
    9393
Note: See TracChangeset for help on using the changeset viewer.