Changeset 7057 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Feb 6, 2006, 3:21:49 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r6812 r7057 48 48 this->ambientTexture = NULL; 49 49 this->specularTexture = NULL; 50 this->sFactor = GL_SRC_ALPHA; 51 this->tFactor = GL_ONE; 50 52 51 53 this->setName(mtlName); … … 112 114 { 113 115 glEnable(GL_BLEND); 114 glBlendFunc( GL_SRC_ALPHA, GL_ONE/*_MINUS_SRC_ALPHA*/);116 glBlendFunc(this->sFactor, this->tFactor); 115 117 } 116 118 else -
trunk/src/lib/graphics/importer/material.h
r6769 r7057 46 46 void setTransparency (float trans); 47 47 void setTransparency (char* trans); 48 void setBlendFunc(GLenum sFactor, GLenum tFactor) { this->sFactor = sFactor; this->tFactor = tFactor; }; 48 49 49 50 // MAPPING // … … 63 64 float shininess; //!< The shininess of the Material. 64 65 float transparency; //!< The transperency of the Material. 66 GLenum sFactor; 67 GLenum tFactor; 65 68 66 69 Texture* diffuseTexture; //!< The diffuse texture of the Material.
Note: See TracChangeset
for help on using the changeset viewer.