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

 
 
previous | up | next 
Vertex Lighting with GLSL


 E-mail this product to a friend

Author:  DigiBen

This tutorial shows how to do vertex lighting with a shader.  Vertex lighting is the process of using the standard lighting calculation to calculate a lit color value at each vertex.  The video card can then interpolate this color across the current triangle being drawn to give it the appearance of being lit.  This tutorial uses diffuse and ambient lighting.

Functions Used:  glEnable(), gluNewQuadric(), gluQuadricDrawStyle(), glTranslatef(), gluSphere(), gluDeleteQuadric(), 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