Changeset 3952 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc
- Timestamp:
- Apr 25, 2005, 1:10:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc
r3946 r3952 100 100 } 101 101 102 102 103 // setting illumination Model 103 104 if (this->illumModel == 1) //! \todo make this work, if no vertex-normals are read. … … 110 111 glEnable(GL_TEXTURE_2D); 111 112 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 } 112 120 } 113 121 else
Note: See TracChangeset
for help on using the changeset viewer.