Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2005, 1:10:24 AM (20 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/importer/material.cc

    r3946 r3952  
    100100    }
    101101
     102
    102103  // setting illumination Model
    103104  if (this->illumModel == 1) //! \todo make this work, if no vertex-normals are read.
     
    110111      glEnable(GL_TEXTURE_2D);
    111112      glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture());
     113
     114      /* This allows alpha blending of 2D textures with the scene */
     115      if (this->diffuseTexture->hasAlpha())
     116        {
     117          glEnable(GL_BLEND);
     118          glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     119        }
    112120    }
    113121  else
Note: See TracChangeset for help on using the changeset viewer.