1
/****************************************************************************
3
* A versatile mesh processing toolbox o o *
5
* Copyright(C) 2005 \/)\/ *
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
****************************************************************************/
24
#ifndef SHADOW_MAPPING_H_
25
#define SHADOW_MAPPING_H_
33
#include <meshlab/interfaces.h>
34
#include <meshlab/meshmodel.h>
35
#include <meshlab/glarea.h>
36
#include <decorate_shader.h>
38
class ShadowMapping : public DecorateShader
46
void runShader(MeshModel&, GLArea*);
49
bool compileAndLink();
55
GLuint _objectShaderProgram;
56
GLuint _objectVert, _objectFrag ;
59
#endif /* SHADOW_MAPPING_H_ */