previous |  up  | next
 

Multi-Texturing with GLSL   

Author:  DigiBen

Multi-texturing is the process of taking two textures and getting a color from each, then combining them to get the color to render to the screen.  By using GLSL, this process can be greatly simplified compared to using the conventional fixed-function pipeline approach.  The multi-texturing tutorial shows how to easily modulate two textures using a shader.

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 full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials