2 #extension GL_GOOGLE_cpp_style_line_directive : require
4 uniform sampler1D texSampler1D;
5 uniform sampler2D texSampler2D;
13 float myAbs(float x) {
22 #line 22 "spv.pp.line.frag"
25 float blendscale = myAbs(1.789);
27 float coords1D = 1.789;
28 vec4 color = vec4(0.0, 0.0, 0.0, 0.0);
30 color += texture (texSampler1D, coords1D);
31 color += texture (texSampler1D, coords1D, bias);
33 color += texture (texSampler2D, coords2D);
34 color += texture (texSampler2D, coords2D, bias);
36 gl_FragColor = mix(color, u, blend * blendscale);