2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
layout(location = 2) in vec2 vUv_1;
|
|
|
|
layout(location = 0) out vec4 color_1;
|
2021-11-16 15:15:36 +00:00
|
|
|
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
|
|
|
|
2022-02-02 15:25:42 +00:00
|
|
|
uniform highp sampler2DShadow depthMap_texSampler;
|
2022-01-24 17:17:22 +00:00
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
FragmentOutput tint_symbol(FragmentInput fIn) {
|
2022-02-02 15:25:42 +00:00
|
|
|
float tint_symbol_1 = texture(depthMap_texSampler, vec3(fIn.vUv, 0.0f));
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
FragmentInput tint_symbol_2 = FragmentInput(vUv_1);
|
|
|
|
FragmentOutput inner_result = tint_symbol(tint_symbol_2);
|
|
|
|
color_1 = inner_result.color;
|
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|