2016-01-23 00:47:22 +00:00
|
|
|
#version 140
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2016-08-03 23:35:19 +00:00
|
|
|
precision mediump int;
|
|
|
|
|
2015-11-16 04:33:39 +00:00
|
|
|
uniform sampler2D samp2D;
|
2016-01-23 00:47:22 +00:00
|
|
|
in mediump vec2 coord;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
struct lunarStruct1 {
|
|
|
|
int i;
|
|
|
|
float f;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct lunarStruct2 {
|
|
|
|
int i;
|
|
|
|
float f;
|
|
|
|
lunarStruct1 s1_1;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct lunarStruct3 {
|
|
|
|
lunarStruct2 s2_1;
|
|
|
|
int i;
|
|
|
|
float f;
|
|
|
|
lunarStruct1 s1_1;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
lunarStruct1 foo;
|
|
|
|
lunarStruct2 foo2;
|
|
|
|
lunarStruct3 foo3;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
lunarStruct2 locals2;
|
|
|
|
|
|
|
|
if (foo3.s2_1.i > 0)
|
|
|
|
locals2 = foo3.s2_1;
|
|
|
|
else
|
|
|
|
locals2 = foo2;
|
|
|
|
|
2015-11-16 04:33:39 +00:00
|
|
|
gl_FragColor = locals2.s1_1.f * texture(samp2D, coord);
|
2015-05-15 21:32:46 +00:00
|
|
|
}
|