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

 
 
previous | up | next 
Toon Shading


 E-mail this product to a friend

Author:  DigiBen

Toon shading is when a model is rendered so that it looks like a cartoon.  The basic idea revolves are taking a dot product with each vertex normal and the light direction then use the dot product to determine how shaded the pixel should be.  This lesson in GLSL loads an .MD2 model and uses a simple toon shading algorithm to color it.

Functions Used:  fopen(), fclose(), fread(), fseek(), strcpy(), vector::push_back(), vector::clear(), new, delete, glEnable(), glLoadIdentity(), gluLookAt(), glLightfv(), glDisable(), glNormal3f(), glTexCoord2f(), glVertex3f(), glCreateShaderObjectARB(), glShaderSourceARB(), glCompileShaderARB(), glCreateProgramObjectARB(), glAttachObjectARB(), glLinkProgramARB(),  glUseProgramObjectARB(), glGetUniformLocationARB(), glDetachObjectARB(), glDeleteObjectARB(), glGetString(), wglGetProcAddress()


 
 
 


 GameTutorials Software
 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