Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7057 in orxonox.OLD for trunk/src/lib/graphics/importer/material.cc


Ignore:
Timestamp:
Feb 6, 2006, 3:21:49 PM (18 years ago)
Author:
bensch
Message:

Textures can now be set the glBlendFunc, and Creature-Target-Fix

File:
1 edited

Legend:

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

    r6812 r7057  
    4848  this->ambientTexture = NULL;
    4949  this->specularTexture = NULL;
     50  this->sFactor = GL_SRC_ALPHA;
     51  this->tFactor = GL_ONE;
    5052
    5153  this->setName(mtlName);
     
    112114  {
    113115    glEnable(GL_BLEND);
    114     glBlendFunc(GL_SRC_ALPHA, GL_ONE/*_MINUS_SRC_ALPHA*/);
     116    glBlendFunc(this->sFactor, this->tFactor);
    115117  }
    116118  else
Note: See TracChangeset for help on using the changeset viewer.