#version 120

/**
 * Toon shader.
 *
 **Project Name:**      MakeHuman
 *
 **Product Home Page:** http://www.makehumancommunity.org/
 *
 **Github Code Home Page:**    https://github.com/makehumancommunity/
 *
 **Authors:**           Marc Flerackers
 *
 **Copyright(c):**      MakeHuman Team 2001-2020
 *
 **Licensing:**         AGPL3
 *
 *
 * Abstract
 * --------
 *
 * Cell shading.
 * Based on an example from www.ozone3d.net
**/

varying vec3 vNormal;
varying vec3 vVertex;
		
void main(void)
{
  gl_TexCoord[0] = gl_MultiTexCoord0;
  gl_Position = ftransform();
  vVertex = vec3(gl_ModelViewMatrix * gl_Vertex);
  vNormal = normalize(gl_NormalMatrix * gl_Normal);
}
