Changeset 3946 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles
- Timestamp:
- Apr 24, 2005, 7:22:17 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc
r3945 r3946 96 96 97 97 material = new Material("transperencyMap"); 98 material->setDiffuseMap("pictures/radialTransparency.jpg"); 99 98 material->setDiffuseMap("pictures/radialTransparency.tga"); 99 // material->setTransparency(.5); 100 100 101 glNewList(glID[0], GL_COMPILE); 101 102 glBegin(GL_TRIANGLE_STRIP); … … 103 104 glVertex3f(0.0, .5, .5); 104 105 glTexCoord2f(1, 0); 106 glVertex3f(0.0, -.5, .5); 107 glTexCoord2f(0, 1); 105 108 glVertex3f(0.0, .5, -.5); 106 glTexCoord2f(0, 1);107 glVertex3f(0.0, -.5, .5);108 109 glTexCoord2f(0, 0); 109 110 glVertex3f(0.0, -.5, -.5); … … 229 230 230 231 glMatrixMode(GL_MODELVIEW); 231 232 // glDisable(GL_LIGHTING); 233 material->select(); 234 glPushAttrib(GL_ENABLE_BIT); 235 glDisable(GL_DEPTH_TEST); 236 glDisable(GL_CULL_FACE); 237 glDisable(GL_LIGHTING); // will be set back when leaving 2D-mode 238 glEnable(GL_TEXTURE_2D); 239 240 /* This allows alpha blending of 2D textures with the scene */ 241 glEnable(GL_BLEND); 242 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 243 244 232 245 Particle* drawPart = particles; 233 246 if (likely(drawPart != NULL)) … … 248 261 glEnd(); 249 262 } 263 glPopAttrib(); 264 250 265 } 251 266
Note: See TracChangeset
for help on using the changeset viewer.