Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 3:29:46 PM (18 years ago)
Author:
nicolasc
Message:

bump: black acid splash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/effects/wobblegrid.cc

    r10327 r10333  
    164164
    165165  glPushAttrib(GL_ENABLE_BIT);
    166 //   glDisable(GL_LIGHTING);
    167 //   glDisable(GL_FOG);
     166  glDisable(GL_LIGHTING);
     167  glDisable(GL_FOG);
    168168
    169169  glMatrixMode(GL_MODELVIEW);
     
    173173  //glTranslatef(0,0,0);
    174174  this->material->select();
     175
     176  glDisable(GL_BLEND);
     177  glEnable( GL_ALPHA_TEST);
     178  glAlphaFunc( GL_GEQUAL, .5);
    175179
    176180  glTranslatef (this->getAbsCoor ().x,
     
    195199
    196200  Vector view = this->getAbsCoor() - State::getCameraNode()->getAbsCoor();
    197   view.normalize();
     201//   view.normalize();
    198202
    199203  Vector up = Vector(0, 1, 0);
     
    203207//     up = Vector (0, 0, 1);
    204208
    205   Vector h = up.cross(view/*.getNormalized()*/);
    206   up = h.cross(view/*.getNormalized()*/);
     209  Vector h = up.cross(view.getNormalized());
     210  up = h.cross(view.getNormalized());
    207211  Quaternion dir = Quaternion::lookAt( this->getAbsCoor(), this->getAbsCoor() + up, view);
    208212//   Quaternion dir = Quaternion::lookAt( Vector(), view, up);
Note: See TracChangeset for help on using the changeset viewer.