1#version 140 2#extension GL_GOOGLE_cpp_style_line_directive : require 3 4uniform sampler1D texSampler1D; 5uniform sampler2D texSampler2D; 6 7varying float blend; 8varying vec4 u; 9 10in vec2 coords2D; 11 12#line 0 "header.h" 13float myAbs(float x) { 14 if (x > 0) { 15 return x; 16 } 17 else { 18 return -x; 19 } 20} 21 22#line 22 "spv.pp.line.frag" 23void main() 24{ 25 float blendscale = myAbs(1.789); 26 float bias = 2.0; 27 float coords1D = 1.789; 28 vec4 color = vec4(0.0, 0.0, 0.0, 0.0); 29#line 53 30 color += texture (texSampler1D, coords1D); 31 color += texture (texSampler1D, coords1D, bias); 32#line 102 33 color += texture (texSampler2D, coords2D); 34 color += texture (texSampler2D, coords2D, bias); 35 36 gl_FragColor = mix(color, u, blend * blendscale); 37} 38