Changeset 4716 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jun 27, 2005, 12:18:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4715 r4716 435 435 case PARTICLE_SPARK: 436 436 glDisable(GL_LIGHTING); 437 glEnable(GL_LINE_SMOOTH); 437 glDepthMask(GL_FALSE); 438 //glEnable(GL_LINE_SMOOTH); 439 glEnable(GL_BLEND); 440 438 441 glBegin(GL_LINES); 439 442 while (likely(drawPart != NULL)) … … 441 444 glColor4fv(drawPart->color); 442 445 glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z); 443 glVertex3f(drawPart->position.x - drawPart->velocity.x ,444 drawPart->position.y - drawPart->velocity.y ,445 drawPart->position.z - drawPart->velocity.z );446 glVertex3f(drawPart->position.x - drawPart->velocity.x * drawPart->radius, 447 drawPart->position.y - drawPart->velocity.y * drawPart->radius, 448 drawPart->position.z - drawPart->velocity.z * drawPart->radius); 446 449 drawPart = drawPart->next; 447 450 }
Note: See TracChangeset
for help on using the changeset viewer.