Changeset 10333 in orxonox.OLD for branches/playability/src/world_entities/effects
- Timestamp:
- Jan 24, 2007, 3:29:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/effects/wobblegrid.cc
r10327 r10333 164 164 165 165 glPushAttrib(GL_ENABLE_BIT); 166 //glDisable(GL_LIGHTING);167 //glDisable(GL_FOG);166 glDisable(GL_LIGHTING); 167 glDisable(GL_FOG); 168 168 169 169 glMatrixMode(GL_MODELVIEW); … … 173 173 //glTranslatef(0,0,0); 174 174 this->material->select(); 175 176 glDisable(GL_BLEND); 177 glEnable( GL_ALPHA_TEST); 178 glAlphaFunc( GL_GEQUAL, .5); 175 179 176 180 glTranslatef (this->getAbsCoor ().x, … … 195 199 196 200 Vector view = this->getAbsCoor() - State::getCameraNode()->getAbsCoor(); 197 view.normalize();201 // view.normalize(); 198 202 199 203 Vector up = Vector(0, 1, 0); … … 203 207 // up = Vector (0, 0, 1); 204 208 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()); 207 211 Quaternion dir = Quaternion::lookAt( this->getAbsCoor(), this->getAbsCoor() + up, view); 208 212 // Quaternion dir = Quaternion::lookAt( Vector(), view, up);
Note: See TracChangeset
for help on using the changeset viewer.