ELF> @@ATL%UH-HHH=LHH-HH=LHH]A\//VTK::System::Dec /*========================================================================= Program: VTK Module: vtkEDLComposeFS.glsl Copyright (c) Sandia Corporation, Kitware Inc. 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. =========================================================================*/ /*---------------------------------------------------------------------- Acknowledgement: This algorithm is the result of joint work by Electricité de France, CNRS, Collège de France and Université J. Fourier as part of the Ph.D. thesis of Christian BOUCHENY. ------------------------------------------------------------------------*/ ////////////////////////////////////////////////////////////////////////// // // // EyeDome Lighting - Compositing - Simplified version for use in VTK\n // // C.B. - 3 feb. 2009 // ////////////////////////////////////////////////////////////////////////// // the output of this shader //VTK::Output::Dec in vec2 tcoordVC; /**************************************************/ uniform sampler2D s2_S1; // fine scale uniform sampler2D s2_S2; // larger medium scale uniform sampler2D s2_C; // scene color image /**************************************************/ void main (void) { vec4 shade1 = texture2D(s2_S1,tcoordVC.st); vec4 shade2 = texture2D(s2_S2,tcoordVC.st); vec4 color = texture2D(s2_C,tcoordVC.st); // if it is the background (ala depth > 0.99) just copy it //if(shade1.a > 0.99) // { // gl_FragData[0] = vec4(shade1.rgb,1.) * color; // } //else // { float lum = mix(shade1.r,shade2.r,0.3); gl_FragData[0] = vec4(color.rgb*lum, color.a); // } gl_FragDepth = shade1.a; // write stored depth } GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0GNUzRx $`FHN |AB`$3Ubz _GLOBAL__sub_I_vtkEDLComposeFS.cxx_ZStL8__ioinit_ZL28vtkDebugLeaksManagerInstance__dso_handle_ZNSt8ios_base4InitC1Ev_GLOBAL_OFFSET_TABLE__ZNSt8ios_base4InitD1Ev__cxa_atexit_ZN20vtkDebugLeaksManagerC1Ev_ZN20vtkDebugLeaksManagerD1Ev_Z33vtkRenderingUI_AutoInit_ConstructvvtkEDLComposeFS  $* 16 > E*P \ .symtab.strtab.shstrtab.text.data.bss.rela.text.startup.rela.init_array.rodata.str1.8.rela.data.rel.local.comment.note.GNU-stack.note.gnu.property.rela.eh_frame@!@'@1@`,@ D?@ P2dp_@  t0x,} @@    (