Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2005, 1:10:24 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: blending now an option of material

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc

    r3951 r3952  
    230230  //  glDisable(GL_LIGHTING);
    231231  material->select();
    232   glPushAttrib(GL_ENABLE_BIT);
    233   glDisable(GL_DEPTH_TEST);
    234   glDisable(GL_CULL_FACE);
    235   glDisable(GL_LIGHTING);  // will be set back when leaving 2D-mode
    236   glEnable(GL_TEXTURE_2D);
    237 
    238   /* This allows alpha blending of 2D textures with the scene */
    239   glEnable(GL_BLEND);
    240   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    241 
    242232
    243233  Particle* drawPart = particles;
     
    259249      glEnd();
    260250    }
    261   glPopAttrib();
    262 
    263251}
    264252
Note: See TracChangeset for help on using the changeset viewer.