Login    You have 0 item(s) in your Shopping Cart  

 
 
previous | up | next 
Color Keying with GLSL


 E-mail this product to a friend

Author:  DigiBen

Color keying, also called “punch out alpha”, is the rejection of drawing a pixel based on a predetermined color value.  If the pixel to be drawn matches the color key it is skipped and not drawn, otherwise rendering happens as normal.  This tutorial shows how to use the GLSL “discard” command to accomplish color keying.

Functions Used:  glEnable(), glActiveTextureARB(), glMultiTexCoord2fARB(), glGenTextures(), glBindTexture(), gluBuild2DMipMaps(), glTexParameteri(), glLoadIdentity(), gluLookAt(), glDisable(), glCreateShaderObjectARB(), glShaderSourceARB(), glCompileShaderARB(), glCreateProgramObjectARB(), glAttachObjectARB(), glLinkProgramARB(),  glUseProgramObjectARB(), glGetUniformLocationARB(), glDetachObjectARB(), glDeleteObjectARB(), glGetString(), wglGetProcAddress()


 
 
 


 Purchase Product
 C Tutorials
 C++ Tutorials
 C# Tutorials
 Java Tutorials
 Win32 Tutorials
 Direct3D Tutorials
 OpenGL Tutorials
 Recent Tutorials
 Free Tutorials



Get All 350+ Tutorials Now!


                                                              Main  |  FAQ  |  Terms of Use  |  Links Contacts Forums