This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
uniform mat4 modelViewProjectionMatrix; // automatically imported by OF | |
uniform mat4 modelViewMatrix; // automatically imported by OF | |
uniform mat4 normalMatrix; // the normal matrix (the inversed-then-transposed modelView matrix) | |
uniform vec3 cameraSpaceLightPos; // already in eye space | |
in vec4 position; // in local space | |
in vec3 normal; // in local space | |
out vec4 outputColor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*========================================================================= | |
This software is distributed WITHOUT ANY WARRANTY; without even | |
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
PURPOSE. | |
=========================================================================*/ | |
// | |
// This simple example shows how to use vtkTexturingHelper to texture an | |
// OBJ 3D model using two texture files in C++. | |
// The model used by this example (mannequine_clothed) can be found on Artec3D scan gallery |