1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
//VTK::System::Dec
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPolyData2DVS.glsl
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// all variables that represent positions or directions have a suffix
// indicating the coordinate system they are in. The possible values are
// MC - Model Coordinates
// WC - WC world coordinates
// VC - View Coordinates
// DC - Display Coordinates
attribute vec4 vertexWC;
// material property values
//VTK::Color::Dec
// Texture coordinates
//VTK::TCoord::Dec
// Apple Bug
//VTK::PrimID::Dec
uniform mat4 WCVCMatrix; // World to view matrix
void main()
{
// Apple Bug
//VTK::PrimID::Impl
gl_Position = WCVCMatrix*vertexWC;
//VTK::TCoord::Impl
//VTK::Color::Impl
}
|