1
/****************************************************************************
3
* An extendible mesh processor o o *
5
* Copyright(C) 2005, 2009 \/)\/ *
6
* Visual Computing Lab /\/| *
7
* ISTI - Italian National Research Council | *
9
* All rights reserved. *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
* This program is distributed in the hope that it will be useful, *
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
22
****************************************************************************/
25
varying vec3 LightDir;
29
Normal = normalize(gl_NormalMatrix * gl_Normal);
30
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
31
LightDir=vec3(gl_LightSource[0].position);