/* DO NOT EDIT.
 * Generated by ../bin/vtkEncodeString
 * 
 * Define the vtkOpenGLRenderer_PeelingFS string.
 *
 * Generated from file: /home/dorado1/vtk/VTK5.10.1/Rendering/vtkOpenGLRenderer_PeelingFS.glsl
 */
#include "vtkOpenGLRenderer_PeelingFS.h"
const char *vtkOpenGLRenderer_PeelingFS =
"// ============================================================================\n"
"//\n"
"//  Program:   Visualization Toolkit\n"
"//  Module:    vtkOpenGLRenderer_PeelingFS.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"
"// \n"
"// Fragment shader used by the depth peeling algorithm.\n"
"\n"
"#version 110\n"
"#extension GL_ARB_texture_rectangle: enable\n"
"\n"
"uniform sampler2DRectShadow shadowTex;\n"
"uniform sampler2DRectShadow opaqueShadowTex;\n"
"uniform float offsetX;\n"
"uniform float offsetY;\n"
"uniform int useTexture;\n"
"uniform sampler2D texture;\n"
"\n"
"void main()\n"
"{\n"
"  vec4 r0=gl_FragCoord;\n"
"  r0.x=r0.x-offsetX;\n"
"  r0.y=r0.y-offsetY;\n"
"  float r1=shadow2DRect(opaqueShadowTex,r0.xyz).x;\n"
"  r1=r1-0.5;\n"
"  if(r1<0.0)\n"
"    {\n"
"    discard;\n"
"    }\n"
"  r0.x=shadow2DRect(shadowTex,r0.xyz).x;\n"
"  r0.x=r0.x-0.5;\n"
"  if(r0.x<0.0)\n"
"    {\n"
"    discard;\n"
"    }\n"
"  if(useTexture==1)\n"
"    {\n"
"    gl_FragColor=gl_Color*texture2D(texture,gl_TexCoord[0].xy);\n"
"    }\n"
"  else\n"
"    {\n"
"    gl_FragColor=gl_Color;\n"
"    }\n"
"}\n"
"\n";

