Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

trunk: new Hover

Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r6763 r6799  
    112112      glEnable(GL_BLEND);
    113113      glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    114       glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), this->transparency);
     114      //glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), this->transparency);
    115115    }
    116116  else
    117117    {
    118118      glDisable(GL_BLEND);
    119       glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), 1);
     119      //glColor4f(*(this->diffuse), *(this->diffuse+1), *(this->diffuse+2), 1);
    120120    }
    121121
  • 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.