Changeset 6799 in orxonox.OLD for trunk/src/lib/particles
- Timestamp:
- Jan 27, 2006, 4:16:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/sprite_particles.cc
r6729 r6799 106 106 107 107 Particle* drawPart = particles; 108 this->material.select(); 108 109 109 110 GLboolean checkLight = false; … … 111 112 if (checkLight == GL_TRUE) 112 113 glDisable(GL_LIGHTING); 114 glEnable(GL_ALPHA_TEST); 115 glEnable(GL_DEPTH_TEST); 116 glClearDepth(1.0); 117 glDepthFunc(GL_LEQUAL); 118 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 119 glEnable(GL_BLEND); 120 glAlphaFunc(GL_GREATER,0.1); 121 glEnable(GL_ALPHA_TEST); 122 glEnable(GL_TEXTURE_2D); 123 glEnable(GL_CULL_FACE); 124 113 125 glMatrixMode(GL_MODELVIEW); 114 glDepthMask(GL_FALSE); 115 116 material.select(); 117 glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 126 //glDepthMask(GL_FALSE); 127 //glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 118 128 119 129 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_ENV_MODE, GL_MODULATE); … … 160 170 drawPart = drawPart->next; 161 171 } 162 glDepthMask(GL_TRUE);172 //glDepthMask(GL_TRUE); 163 173 glPopAttrib(); 164 174 }
Note: See TracChangeset
for help on using the changeset viewer.