Changeset 3946 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc
- Timestamp:
- Apr 24, 2005, 7:22:17 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc
r3914 r3946 88 88 89 89 // setting the transparency 90 if (this->transparency == 1.0) 91 { 92 glDisable(GL_BLEND); 93 } 94 else 90 if (this->transparency < 1.0) 95 91 { 96 92 glEnable(GL_BLEND); 97 93 glColor4f(1.0f, 1.0f, 1.0f, this->transparency); 98 94 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 95 } 96 else 97 { 98 glDisable(GL_BLEND); 99 glColor4f(1.0f, 1.0f, 1.0f, 1.0f); 99 100 } 100 101
Note: See TracChangeset
for help on using the changeset viewer.