2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
|
|
|
struct FragmentInput {
|
|
|
|
vec2 vUv;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct FragmentOutput {
|
|
|
|
vec4 color;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct tint_symbol_3 {
|
|
|
|
vec2 vUv;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct tint_symbol_4 {
|
|
|
|
vec4 color;
|
|
|
|
};
|
|
|
|
|
2022-01-24 17:17:22 +00:00
|
|
|
uniform highp sampler2D depthMap_texSampler;
|
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
FragmentOutput tint_symbol_inner(FragmentInput fIn) {
|
2022-01-24 17:17:22 +00:00
|
|
|
float tint_symbol_1 = texture(depthMap_texSampler, fIn.vUv).x;
|
2021-11-16 15:15:36 +00:00
|
|
|
vec3 color = vec3(tint_symbol_1, tint_symbol_1, tint_symbol_1);
|
|
|
|
FragmentOutput fOut = FragmentOutput(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
|
|
|
fOut.color = vec4(color, 1.0f);
|
|
|
|
return fOut;
|
|
|
|
}
|
|
|
|
|
|
|
|
tint_symbol_4 tint_symbol(tint_symbol_3 tint_symbol_2) {
|
|
|
|
FragmentInput tint_symbol_5 = FragmentInput(tint_symbol_2.vUv);
|
|
|
|
FragmentOutput inner_result = tint_symbol_inner(tint_symbol_5);
|
|
|
|
tint_symbol_4 wrapper_result = tint_symbol_4(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
|
|
|
wrapper_result.color = inner_result.color;
|
|
|
|
return wrapper_result;
|
|
|
|
}
|
2022-01-25 19:44:14 +00:00
|
|
|
layout(location = 2) in vec2 vUv;
|
|
|
|
layout(location = 0) out vec4 color;
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
void main() {
|
|
|
|
tint_symbol_3 inputs;
|
|
|
|
inputs.vUv = vUv;
|
|
|
|
tint_symbol_4 outputs;
|
|
|
|
outputs = tint_symbol(inputs);
|
|
|
|
color = outputs.color;
|
|
|
|
}
|
|
|
|
|