2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
layout(location = 0) in vec3 position_param_1;
|
|
|
|
layout(location = 2) in vec2 uv_param_1;
|
|
|
|
layout(location = 1) in vec3 normal_param_1;
|
|
|
|
layout(location = 0) out vec2 vUV_1_1;
|
2022-02-04 15:39:34 +00:00
|
|
|
struct strided_arr {
|
2021-11-16 15:15:36 +00:00
|
|
|
float el;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-12-09 15:45:03 +00:00
|
|
|
struct LeftOver {
|
|
|
|
mat4 worldViewProjection;
|
|
|
|
float time;
|
|
|
|
mat4 test2[2];
|
2022-02-04 15:39:34 +00:00
|
|
|
strided_arr test[4];
|
2021-12-09 15:45:03 +00:00
|
|
|
};
|
2021-11-16 15:15:36 +00:00
|
|
|
|
|
|
|
vec3 position = vec3(0.0f, 0.0f, 0.0f);
|
2022-01-25 20:06:05 +00:00
|
|
|
layout(binding = 2) uniform LeftOver_1 {
|
2021-11-16 15:15:36 +00:00
|
|
|
mat4 worldViewProjection;
|
|
|
|
float time;
|
|
|
|
mat4 test2[2];
|
2022-02-04 15:39:34 +00:00
|
|
|
strided_arr test[4];
|
2021-11-16 15:15:36 +00:00
|
|
|
} x_14;
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
vec2 vUV = vec2(0.0f, 0.0f);
|
|
|
|
vec2 uv = vec2(0.0f, 0.0f);
|
|
|
|
vec3 normal = vec3(0.0f, 0.0f, 0.0f);
|
|
|
|
vec4 tint_symbol = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
void main_1() {
|
|
|
|
vec4 q = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
|
|
vec3 p = vec3(0.0f, 0.0f, 0.0f);
|
|
|
|
vec3 x_13 = position;
|
|
|
|
q = vec4(x_13.x, x_13.y, x_13.z, 1.0f);
|
|
|
|
vec4 x_21 = q;
|
|
|
|
p = vec3(x_21.x, x_21.y, x_21.z);
|
|
|
|
float x_27 = p.x;
|
|
|
|
float x_41 = x_14.test[0].el;
|
|
|
|
float x_45 = position.y;
|
|
|
|
float x_49 = x_14.time;
|
|
|
|
p.x = (x_27 + sin(((x_41 * x_45) + x_49)));
|
|
|
|
float x_55 = p.y;
|
|
|
|
float x_57 = x_14.time;
|
|
|
|
p.y = (x_55 + sin((x_57 + 4.0f)));
|
|
|
|
mat4 x_69 = x_14.worldViewProjection;
|
|
|
|
vec3 x_70 = p;
|
|
|
|
tint_symbol = (x_69 * vec4(x_70.x, x_70.y, x_70.z, 1.0f));
|
|
|
|
vUV = uv;
|
|
|
|
float x_87 = tint_symbol.y;
|
|
|
|
tint_symbol.y = (x_87 * -1.0f);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct main_out {
|
|
|
|
vec4 tint_symbol;
|
|
|
|
vec2 vUV_1;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
main_out tint_symbol_1(vec3 position_param, vec2 uv_param, vec3 normal_param) {
|
2021-11-16 15:15:36 +00:00
|
|
|
position = position_param;
|
|
|
|
uv = uv_param;
|
|
|
|
normal = normal_param;
|
|
|
|
main_1();
|
2022-01-28 22:36:58 +00:00
|
|
|
main_out tint_symbol_2 = main_out(tint_symbol, vUV);
|
|
|
|
return tint_symbol_2;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
main_out inner_result = tint_symbol_1(position_param_1, uv_param_1, normal_param_1);
|
|
|
|
gl_Position = inner_result.tint_symbol;
|
|
|
|
vUV_1_1 = inner_result.vUV_1;
|
|
|
|
gl_Position.y = -(gl_Position.y);
|
|
|
|
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|