Skip to main content
GameDev.net gamedev.net
🔒 Locked

Blending Problems

Started by Magic Jan 4, 2001 at 7:31 PM 1 replies 1k views
Original Post
Magic
Magic
How can I make a blend effect like the one that you get looking through a red glass? Thanxxxxxxxxxxx
Magic
lokapujya
lokapujya
i was just reading about that, it goes something like this:
(er..this is probably for 2d but hopefully can spark anidea)
    
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glShadeModel (GL_FLAT);
glClearColor (0.0, 0.0, 0.0, 0.0);
drawscene();
glColor4f(1.0, 0.0, 0.0, 0.5); //color for red glass

drawglass()


it''''s all about a good time!


-
L
O
K
A
P
U
J
A
-
it's all about a good time!AOLIM name: -LOKAPUJA-
Magic
Magic
Thanx i was looking for that glBlenFunc() parameters!!

Thanx very much!!
Magic

Topic Locked

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

Sign in to reply to this topic.