~ubuntu-branches/ubuntu/vivid/meshlab/vivid

« back to all changes in this revision

Viewing changes to meshlab/src/meshlab/shaders/toon.vert

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2011-03-28 17:54:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110328175411-ntj9e50d1yl0luzb
Tags: 1.3.0a+dfsg1-1
* New upstream version (closes: #618522)
* Repackage the upstream sources to get rid of some files with questionable
  licensing information and useless libraries, see the copyright file for
  details.
* Builds with GCC-4.5 (closes: #565034)
* Fix watch-file to work with new upstream names and dfsg source
  (closes: #582477)
* Require debhelper version 8 or above.
* control:
  - Update standards-version to 3.9.1, cleanup.
  - Remove build-dep to libgl-dev to fix a lintian warning about a
    build-dep to a virtual package.
  - Remove build-dep to asciidoc, add build-dep to libeigen2-dev.
* rules:
  - Remove manpage-related code.
  - Build the necessary code from meshlab/src/external. Also clean it.
  - Override dh_shlibdeps to include /usr/lib/meshlab in search path.
  - Don't install shader licenses.
* install: Install binaries from meshlab/src/distrib.
* copyright: Update to the latest DEP5 format, document changes due to
  source repackaging and add the copyright info for the files added in
  this upstream release.
* Hardcode shadersDir and pluginDir in upstream source to locations
  in the Debian binary package.
* Use source format '3.0 (quilt)'.
* Split changes affecting upstream code to branches in the git repository
  at git.d.o. Add DEP3 patch metadata headers to debian/metapatches and
  generate patches from git branches with gdp (http://gitorious.org/gdp).
  Current patches:
  - 01_muparser: Use Debian muparser.
  - 02_qhull: Use Debian qhull.
  - 03_lib3ds: Use Debian lib3ds.
  - 04_libbz2: Use Debian libbz2.
  - 05_glew: Use Debian GLEW.
  - 06_eigen: Use Debian Eigen.
  - 07_disable-updates: Disable checking for updates on startup.
  - 08_externals: Only build necessary external sources.
  - 09_rpath: Use /usr/lib/meshlab as RPATH in binaries.
  - 10_shadersdir: Hardcode shadersDir to the correct path in Debian
  - 11_pluginsdir: Hardcode pluginsDir to the correct path in Debian
* Add a README.source file documenting the patch generation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
* MeshLab                                                           o o     *
3
 
* An extendible mesh processor                                    o     o   *
4
 
*                                                                _   O  _   *
5
 
* Copyright(C) 2005, 2009                                          \/)\/    *
6
 
* Visual Computing Lab                                            /\/|      *
7
 
* ISTI - Italian National Research Council                           |      *
8
 
*                                                                    \      *
9
 
* All rights reserved.                                                      *
10
 
*                                                                           *
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.                                       *
15
 
*                                                                           *
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)          *
20
 
* for more details.                                                         *
21
 
*                                                                           *
22
 
****************************************************************************/
23
 
 
24
 
varying vec3 Normal;
25
 
varying vec3 LightDir;
26
 
 
27
 
void main(void)
28
 
{
29
 
        Normal = normalize(gl_NormalMatrix * gl_Normal);
30
 
        gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
31
 
        LightDir=vec3(gl_LightSource[0].position);
32
 
}