yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
8243ca3c
main
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 ) { 14if (x > 0 ) { 15return x ; 16 } 17else { 18return - x ; 19 } 20} 21 22#line 22 "spv.pp.line.frag" 23void main () 24{ 25float blendscale = myAbs (1.789 ); 26float bias = 2.0 ; 27float coords1D = 1.789 ; 28vec4 color = vec4 (0.0 ,0.0 ,0.0 ,0.0 ); 29#line 53 30color += texture (texSampler1D ,coords1D ); 31color += texture (texSampler1D ,coords1D ,bias ); 32#line 102 33color += texture (texSampler2D ,coords2D ); 34color += texture (texSampler2D ,coords2D ,bias ); 35 36gl_FragColor = mix (color ,u ,blend * blendscale ); 37}