yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6c292d3b
main
1#version 140 2 3in float blend ; 4in vec4 u ; 5bool p ; 6 7in vec2 t ; 8 9void main () 10{ 11float blendscale = 1.789 ; 12 13vec4 w = u ; 14vec4 w_undef ;// test undef 15vec4 w_dep = u ;// test dependent swizzles 16vec4 w_reorder = u ;// test reordering 17vec4 w2 = u ; 18vec4 w_flow = u ;// test flowControl 19 20w_reorder .z = blendscale ; 21 22w .wy = t ; 23 24w_reorder .x = blendscale ; 25 26w2 .xyzw = u .zwxy ; 27 28w_reorder .y = blendscale ; 29 30w_dep .xy = w2 .xz ; 31w_dep .zw = t ; 32 33w_undef .xy = u .zw ; 34 35if (p ) 36w_flow .x = t .x ; 37else 38w_flow .x = t .y ; 39 40gl_FragColor = mix (w_reorder ,w_undef ,w * w2 * w_dep * w_flow ); 41 42vec2 c = t ; 43vec4 rep = vec4 (0.0 ,0.0 ,0.0 ,1.0 ); 44 45if (c .x < 0.0 ) 46c .x *=-1.0 ; 47 48if (c .x <=1.0 ) 49rep .x = 3.4 ; 50 51gl_FragColor += rep ; 52}