1#version 140 2 3precision mediump int; 4 5uniform sampler2D samp2D; 6in mediump vec2 coord; 7 8struct lunarStruct1 { 9 int i; 10 float f; 11}; 12 13struct lunarStruct2 { 14 int i; 15 float f; 16 lunarStruct1 s1_1; 17}; 18 19struct lunarStruct3 { 20 lunarStruct2 s2_1; 21 int i; 22 float f; 23 lunarStruct1 s1_1; 24}; 25 26 27lunarStruct1 foo; 28lunarStruct2 foo2; 29lunarStruct3 foo3; 30 31void main() 32{ 33 lunarStruct2 locals2; 34 35 if (foo3.s2_1.i > 0) 36 locals2 = foo3.s2_1; 37 else 38 locals2 = foo2; 39 40 gl_FragColor = locals2.s1_1.f * texture(samp2D, coord); 41} 42