/usr/include/paraview/Texture_vs.cxx is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /* DO NOT EDIT.
* Generated by ../../../bin/vtkEncodeString
*
* Define the Texture_vs string.
*
* Generated from file: /build/paraview-arsa8T/paraview-5.0.1+dfsg1/Plugins/PointSprite/Rendering/Resources/Shaders/Texture_vs.glsl
*/
const char *Texture_vs =
"/*=========================================================================\n"
"\n"
" Program: Visualization Toolkit\n"
" Module: Texture_vs.glsl\n"
"\n"
" Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n"
" All rights reserved.\n"
" See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n"
"\n"
" This software is distributed WITHOUT ANY WARRANTY; without even\n"
" the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
" PURPOSE. See the above copyright notice for more information.\n"
"\n"
"=========================================================================*/\n"
"\n"
"// .NAME Texture_vs.glsl\n"
"// .SECTION Thanks\n"
"// <verbatim>\n"
"//\n"
"// This file is part of the PointSprites plugin developed and contributed by\n"
"//\n"
"// Copyright (c) CSCS - Swiss National Supercomputing Centre\n"
"// EDF - Electricite de France\n"
"//\n"
"// John Biddiscombe, Ugo Varetto (CSCS)\n"
"// Stephane Ploix (EDF)\n"
"//\n"
"// </verbatim>\n"
"\n"
"uniform float MaxPixelSize;\n"
"uniform vec2 viewport;\n"
"\n"
"float GetRadius();\n"
"\n"
"void propFuncVS()\n"
"{\n"
" float radius = GetRadius();\n"
"\n"
" gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;\n"
" gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;\n"
" //\n"
" // Convert position to window coordinates\n"
" //\n"
"\n"
" //\n"
" // Convert Radius to window coordinates\n"
" // radius/w is homogenous clip coord\n"
" //\n"
" float pixelSize = (radius/gl_Position.w)*(4.0*viewport.y);\n"
"\n"
" // Clamp radius to prevent overloading if bad scalars were passed in\n"
" if (pixelSize>MaxPixelSize)\n"
" pixelSize = MaxPixelSize;\n"
"\n"
" gl_PointSize = pixelSize;\n"
" gl_FrontColor = gl_Color;\n"
"}\n"
"\n";
|