Advertisement

Blending Problems

Started by January 04, 2001 07:31 PM
1 comment, last by Magic 23 years, 10 months ago
How can I make a blend effect like the one that you get looking through a red glass? Thanxxxxxxxxxxx
Magic
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-
Advertisement
Thanx i was looking for that glBlenFunc() parameters!!

Thanx very much!!
Magic

This topic is closed to new replies.

Advertisement