Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6799 in orxonox.OLD for trunk/src/lib/particles


Ignore:
Timestamp:
Jan 27, 2006, 4:16:02 PM (19 years ago)
Author:
bensch
Message:

trunk: new Hover

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/sprite_particles.cc

    r6729 r6799  
    106106
    107107  Particle* drawPart = particles;
     108  this->material.select();
    108109
    109110  GLboolean checkLight = false;
     
    111112  if (checkLight == GL_TRUE)
    112113    glDisable(GL_LIGHTING);
     114  glEnable(GL_ALPHA_TEST);
     115  glEnable(GL_DEPTH_TEST);
     116  glClearDepth(1.0);
     117  glDepthFunc(GL_LEQUAL);
     118  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     119  glEnable(GL_BLEND);
     120  glAlphaFunc(GL_GREATER,0.1);
     121  glEnable(GL_ALPHA_TEST);
     122  glEnable(GL_TEXTURE_2D);
     123  glEnable(GL_CULL_FACE);
     124
    113125  glMatrixMode(GL_MODELVIEW);
    114   glDepthMask(GL_FALSE);
    115 
    116   material.select();
    117   glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA);
     126  //glDepthMask(GL_FALSE);
     127//glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA);
    118128
    119129  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_ENV_MODE, GL_MODULATE);
     
    160170    drawPart = drawPart->next;
    161171  }
    162   glDepthMask(GL_TRUE);
     172  //glDepthMask(GL_TRUE);
    163173  glPopAttrib();
    164174}
Note: See TracChangeset for help on using the changeset viewer.