Skip to main content
gamedev.net
🔒 Locked

blending

Started by Shiftytitan Dec 28, 2002 at 8:45 PM 0 replies 350+ views
Original Post
Shiftytitan
Shiftytitan
i have a question. how do you make the particles, (for the particle engine) blend, and not the other objects?
JonoX
JonoX

glEnable(GL_BLEND);// Turn Blending On

glDisable(GL_DEPTH_TEST);// Turn Depth Testing Off



.. draw particals ..


glDisable(GL_BLEND);// Turn Blending Off

glEnable(GL_DEPTH_TEST);// Turn Depth Testing On



.. draw rest of seen ..












- Jono AH
JonoRule #1: If you build it, they will come -- to hack and cheat.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.