previous |  up  | next
 

Vertex Lighting with GLSL   

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

 
 
 

 

 

 


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