//============================================================================= // // Project: SharpImage // Module: shader_vmt.vert // Language: OpenGL Shading Language (GLSL) // Author: Dan Mueller (dan.muel[at]gmail.com) // Date: $Date: 2007-06-25 06:36:09 +1000 (Mon, 25 Jun 2007) $ // Revision: $Revision: 73 $ // // Copyright (c) Queensland University of Technology (QUT) 2007. // All rights reserved. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE. See the copyright notices for more information. // //============================================================================= // Texture coords varying vec3 pos3Tex1; varying vec3 pos3Tex2; varying vec3 pos3Tex3; void main() { // Transform the vertex gl_Position = ftransform( ); // Set texture coordinates pos3Tex1 = vec3( gl_MultiTexCoord1 ); pos3Tex2 = vec3( gl_MultiTexCoord2 ); pos3Tex3 = vec3( gl_MultiTexCoord3 ); }