ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 445 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define varying in 5: #ifdef GL_FRAGMENT_PRECISION_HIGH 6: precision highp float; 7: precision highp sampler2D; 8: precision highp sampler3D; 9: #else 10: precision mediump float; 11: precision mediump sampler2D; 12: precision mediump sampler3D; 13: #endif 14: #define texelFetchBuffer texelFetch 15: #define texture1D texture 16: #define texture2D texture 17: #define texture3D texture 18: #endif // 300 19: #else // GL_ES 20: #define highp 21: #define mediump 22: #define lowp 23: #if __VERSION__ == 150 24: #define varying in 25: #define texelFetchBuffer texelFetch 26: #define texture1D texture 27: #define texture2D texture 28: #define texture3D texture 29: #endif 30: #if __VERSION__ == 120 31: #extension GL_EXT_gpu_shader4 : require 32: #endif 33: #endif // GL_ES 34: 35: 36: /*========================================================================= 37: 38: Program: Visualization Toolkit 39: Module: vtkPolyDataFS.glsl 40: 41: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 42: All rights reserved. 43: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 44: 45: This software is distributed WITHOUT ANY WARRANTY; without even 46: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 47: PURPOSE. See the above copyright notice for more information. 48: 49: =========================================================================*/ 50: // Template for the polydata mappers fragment shader 51: 52: uniform int PrimitiveIDOffset; 53: 54: // VC position of this fragment 55: //VTK::PositionVC::Dec 56: 57: // Camera prop 58: uniform int cameraParallel; 59: 60: 61: // optional color passed in from the vertex shader, vertexColor 62: uniform bool OverridesColor; 63: uniform float ambientIntensity; // the material ambient 64: uniform float diffuseIntensity; // the material diffuse 65: uniform float opacityUniform; // the fragment opacity 66: uniform vec3 ambientColorUniform; // ambient color 67: uniform vec3 diffuseColorUniform; // diffuse color 68: varying vec4 vertexColorVSOutput; 69: 70: 71: // optional surface normal declaration 72: //VTK::Normal::Dec 73: 74: // extra lighting parameters 75: //VTK::Light::Dec 76: 77: // Texture maps 78: //VTK::TMap::Dec 79: 80: // Texture coordinates 81: uniform int uMaskOnSurface; 82: uniform mat3 normalMatrix; 83: varying vec3 tcoordVCVSOutput; 84: 85: // picking support 86: //VTK::Picking::Dec 87: 88: // Depth Peeling Support 89: //VTK::DepthPeeling::Dec 90: 91: // clipping plane vars 92: //VTK::Clip::Dec 93: 94: // the output of this shader 95: out vec4 fragOutput0; 96: out vec4 fragOutput1; 97: out vec4 fragOutput2; 98: 99: 100: // Apple Bug 101: //VTK::PrimID::Dec 102: 103: // handle coincident offsets 104: //VTK::Coincident::Dec 105: 106: // Value raster 107: //VTK::ValuePass::Dec 108: 109: void main() 110: { 111: // VC position of this fragment. This should not branch/return/discard. 112: //VTK::PositionVC::Impl 113: 114: // Place any calls that require uniform flow (e.g. dFdx) here. 115: //VTK::UniformFlow::Impl 116: 117: // Set gl_FragDepth here (gl_FragCoord.z by default) 118: //VTK::Depth::Impl 119: 120: // Early depth peeling abort: 121: //VTK::DepthPeeling::PreColor 122: 123: // Apple Bug 124: //VTK::PrimID::Impl 125: 126: //VTK::Clip::Impl 127: 128: //VTK::ValuePass::Impl 129: 130: vec3 ambientColor = ambientIntensity * vertexColorVSOutput.rgb; 131: vec3 diffuseColor = diffuseIntensity * vertexColorVSOutput.rgb; 132: float opacity = opacityUniform * vertexColorVSOutput.a; 133: if (OverridesColor) { 134: ambientColor = ambientColorUniform; 135: diffuseColor = diffuseColorUniform; } 136: 137: 138: // Generate the normal if we are not passed in one 139: //VTK::Normal::Impl 140: 141: fragOutput0 = vec4(ambientColor + diffuseColor, opacity); 142: //VTK::Light::Impl 143: 144: 145: vec3 tcoordLIC = normalMatrix * tcoordVCVSOutput; 146: vec3 normN = normalize(normalVCVSOutput); 147: float k = dot(tcoordLIC, normN); 148: tcoordLIC = (tcoordLIC - k*normN); 149: fragOutput1 = vec4(tcoordLIC.x, tcoordLIC.y, 0.0 , gl_FragCoord.z); 150: if (uMaskOnSurface == 0) 151: { 152: fragOutput2 = vec4(tcoordVCVSOutput, gl_FragCoord.z); 153: } 154: else 155: { 156: fragOutput2 = vec4(tcoordLIC.x, tcoordLIC.y, 0.0 , gl_FragCoord.z); 157: } 158: 159: 160: if (fragOutput0.a <= 0.0) 161: { 162: discard; 163: } 164: 165: //VTK::DepthPeeling::Impl 166: 167: //VTK::Picking::Impl 168: 169: // handle coincident offsets 170: //VTK::Coincident::Impl 171: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 446 vtkShaderProgram (000001CB50593910): 0(146) : error C1008: undefined variable "normalVCVSOutput" ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50593910): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 445 vtkShaderProgram (000001CB50598A70): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define varying in 5: #ifdef GL_FRAGMENT_PRECISION_HIGH 6: precision highp float; 7: precision highp sampler2D; 8: precision highp sampler3D; 9: #else 10: precision mediump float; 11: precision mediump sampler2D; 12: precision mediump sampler3D; 13: #endif 14: #define texelFetchBuffer texelFetch 15: #define texture1D texture 16: #define texture2D texture 17: #define texture3D texture 18: #endif // 300 19: #else // GL_ES 20: #define highp 21: #define mediump 22: #define lowp 23: #if __VERSION__ == 150 24: #define varying in 25: #define texelFetchBuffer texelFetch 26: #define texture1D texture 27: #define texture2D texture 28: #define texture3D texture 29: #endif 30: #if __VERSION__ == 120 31: #extension GL_EXT_gpu_shader4 : require 32: #endif 33: #endif // GL_ES 34: 35: 36: /*========================================================================= 37: 38: Program: Visualization Toolkit 39: Module: vtkPolyDataFS.glsl 40: 41: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 42: All rights reserved. 43: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 44: 45: This software is distributed WITHOUT ANY WARRANTY; without even 46: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 47: PURPOSE. See the above copyright notice for more information. 48: 49: =========================================================================*/ 50: // Template for the polydata mappers fragment shader 51: 52: uniform int PrimitiveIDOffset; 53: 54: // VC position of this fragment 55: //VTK::PositionVC::Dec 56: 57: // Camera prop 58: uniform int cameraParallel; 59: 60: 61: // optional color passed in from the vertex shader, vertexColor 62: uniform bool OverridesColor; 63: uniform float ambientIntensity; // the material ambient 64: uniform float diffuseIntensity; // the material diffuse 65: uniform float opacityUniform; // the fragment opacity 66: uniform vec3 ambientColorUniform; // ambient color 67: uniform vec3 diffuseColorUniform; // diffuse color 68: varying vec4 vertexColorVSOutput; 69: 70: 71: // optional surface normal declaration 72: //VTK::Normal::Dec 73: 74: // extra lighting parameters 75: //VTK::Light::Dec 76: 77: // Texture maps 78: //VTK::TMap::Dec 79: 80: // Texture coordinates 81: uniform int uMaskOnSurface; 82: uniform mat3 normalMatrix; 83: varying vec3 tcoordVCVSOutput; 84: 85: // picking support 86: //VTK::Picking::Dec 87: 88: // Depth Peeling Support 89: //VTK::DepthPeeling::Dec 90: 91: // clipping plane vars 92: //VTK::Clip::Dec 93: 94: // the output of this shader 95: out vec4 fragOutput0; 96: out vec4 fragOutput1; 97: out vec4 fragOutput2; 98: 99: 100: // Apple Bug 101: //VTK::PrimID::Dec 102: 103: // handle coincident offsets 104: //VTK::Coincident::Dec 105: 106: // Value raster 107: //VTK::ValuePass::Dec 108: 109: void main() 110: { 111: // VC position of this fragment. This should not branch/return/discard. 112: //VTK::PositionVC::Impl 113: 114: // Place any calls that require uniform flow (e.g. dFdx) here. 115: //VTK::UniformFlow::Impl 116: 117: // Set gl_FragDepth here (gl_FragCoord.z by default) 118: //VTK::Depth::Impl 119: 120: // Early depth peeling abort: 121: //VTK::DepthPeeling::PreColor 122: 123: // Apple Bug 124: //VTK::PrimID::Impl 125: 126: //VTK::Clip::Impl 127: 128: //VTK::ValuePass::Impl 129: 130: vec3 ambientColor = ambientIntensity * vertexColorVSOutput.rgb; 131: vec3 diffuseColor = diffuseIntensity * vertexColorVSOutput.rgb; 132: float opacity = opacityUniform * vertexColorVSOutput.a; 133: if (OverridesColor) { 134: ambientColor = ambientColorUniform; 135: diffuseColor = diffuseColorUniform; } 136: 137: 138: // Generate the normal if we are not passed in one 139: //VTK::Normal::Impl 140: 141: fragOutput0 = vec4(ambientColor + diffuseColor, opacity); 142: //VTK::Light::Impl 143: 144: 145: vec3 tcoordLIC = normalMatrix * tcoordVCVSOutput; 146: vec3 normN = normalize(normalVCVSOutput); 147: float k = dot(tcoordLIC, normN); 148: tcoordLIC = (tcoordLIC - k*normN); 149: fragOutput1 = vec4(tcoordLIC.x, tcoordLIC.y, 0.0 , gl_FragCoord.z); 150: if (uMaskOnSurface == 0) 151: { 152: fragOutput2 = vec4(tcoordVCVSOutput, gl_FragCoord.z); 153: } 154: else 155: { 156: fragOutput2 = vec4(tcoordLIC.x, tcoordLIC.y, 0.0 , gl_FragCoord.z); 157: } 158: 159: 160: if (fragOutput0.a <= 0.0) 161: { 162: discard; 163: } 164: 165: //VTK::DepthPeeling::Impl 166: 167: //VTK::Picking::Impl 168: 169: // handle coincident offsets 170: //VTK::Coincident::Impl 171: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 446 vtkShaderProgram (000001CB50598A70): 0(146) : error C1008: undefined variable "normalVCVSOutput" ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50593910): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50593910): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50598A70): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50598A70): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50593910): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50593910): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50593910): ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 430 vtkShaderProgram (000001CB50598A70): 1: #version 150 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define attribute in 5: #define varying out 6: #endif // 300 7: #else // GL_ES 8: #define highp 9: #define mediump 10: #define lowp 11: #if __VERSION__ == 150 12: #define attribute in 13: #define varying out 14: #endif 15: #endif // GL_ES 16: 17: 18: /*========================================================================= 19: 20: Program: Visualization Toolkit 21: Module: vtkPolyDataVS.glsl 22: 23: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 24: All rights reserved. 25: See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 26: 27: This software is distributed WITHOUT ANY WARRANTY; without even 28: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 29: PURPOSE. See the above copyright notice for more information. 30: 31: =========================================================================*/ 32: 33: attribute vec4 vertexMC; 34: 35: // frag position in VC 36: //VTK::PositionVC::Dec 37: 38: // optional normal declaration 39: //VTK::Normal::Dec 40: 41: // extra lighting parameters 42: //VTK::Light::Dec 43: 44: // Texture coordinates 45: attribute vec3 vecsMC; 46: varying vec3 tcoordVCVSOutput; 47: 48: 49: // material property values 50: attribute vec4 scalarColor; 51: varying vec4 vertexColorVSOutput; 52: 53: // clipping plane vars 54: //VTK::Clip::Dec 55: 56: // camera and actor matrix values 57: uniform mat4 MCDCMatrix; 58: 59: // Apple Bug 60: //VTK::PrimID::Dec 61: 62: // Value raster 63: //VTK::ValuePass::Dec 64: 65: void main() 66: { 67: vertexColorVSOutput = scalarColor; 68: 69: //VTK::Normal::Impl 70: 71: tcoordVCVSOutput = vecsMC; 72: 73: //VTK::Clip::Impl 74: 75: //VTK::PrimID::Impl 76: 77: gl_Position = MCDCMatrix * vertexMC; 78: 79: 80: //VTK::ValuePass::Impl 81: 82: //VTK::Light::Impl 83: } ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 431 vtkShaderProgram (000001CB50598A70):