dbf-udg

annotate sdr/phong.v.glsl @ 12:1abbed71e9c9

cleanup, copyright statements and notices, readme files
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 20 Feb 2013 05:45:27 +0200
parents 603656331514
children
rev   line source
nuclear@12 1 /*
nuclear@12 2 Printblobs - typography display hack
nuclear@12 3 Copyright (C) 2013 John Tsiombikas <nuclear@member.fsf.org>
nuclear@12 4
nuclear@12 5 This program is free software: you can redistribute it and/or modify
nuclear@12 6 it under the terms of the GNU General Public License as published by
nuclear@12 7 the Free Software Foundation, either version 3 of the License, or
nuclear@12 8 (at your option) any later version.
nuclear@12 9
nuclear@12 10 This program is distributed in the hope that it will be useful,
nuclear@12 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@12 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@12 13 GNU General Public License for more details.
nuclear@12 14
nuclear@12 15 You should have received a copy of the GNU General Public License
nuclear@12 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@12 17 */
nuclear@7 18 varying vec3 normal, vpos;
nuclear@7 19
nuclear@7 20 void main()
nuclear@7 21 {
nuclear@7 22 gl_Position = ftransform();
nuclear@7 23 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
nuclear@7 24 normal = gl_NormalMatrix * gl_Normal;
nuclear@7 25
nuclear@7 26 gl_TexCoord[0] = gl_MultiTexCoord0;
nuclear@7 27 }