yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6c292d3b
vulkan-sdk-1.4.357.0
1#version 140 2uniform sampler2D samp2D ; 3in vec2 coord ; 4 5struct lunarStruct1 { 6int i ; 7float f [ 4 ] ; 8vec4 color [ 5 ] ; 9} ; 10 11struct lunarStruct2 { 12int i [ 5 ] ; 13float f ; 14lunarStruct1 s1_1 [ 7 ] ; 15} ; 16 17lunarStruct1 foo ; 18lunarStruct2 foo2 [ 5 ] ; 19 20void main () 21{ 22float scale = 0.0 ; 23 24if ( foo2 [ 3 ] . i [ 4 ] > 0 ) 25scale = foo2 [ 3 ] . s1_1 [ 2 ] . color [ 3 ] . x ; 26else 27scale = foo2 [ 3 ] . s1_1 [ 2 ] . f [ 3 ] ; 28 29gl_FragColor = scale * texture ( samp2D , coord ) ; 30} 31