2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
layout(location = 0) in vec4 cur_position_1;
|
|
|
|
layout(location = 1) in vec4 color_1;
|
|
|
|
layout(location = 0) out vec4 vtxFragColor_1;
|
2022-11-02 02:25:38 +00:00
|
|
|
struct Uniforms {
|
2021-11-16 15:15:36 +00:00
|
|
|
mat4 modelViewProjectionMatrix;
|
2022-11-02 02:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
layout(binding = 0, std140) uniform uniforms_block_ubo {
|
|
|
|
Uniforms inner;
|
2021-11-16 15:15:36 +00:00
|
|
|
} uniforms;
|
|
|
|
|
|
|
|
struct VertexInput {
|
|
|
|
vec4 cur_position;
|
|
|
|
vec4 color;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct VertexOutput {
|
|
|
|
vec4 vtxFragColor;
|
|
|
|
vec4 Position;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
VertexOutput vtx_main(VertexInput tint_symbol) {
|
2021-11-16 15:15:36 +00:00
|
|
|
VertexOutput tint_symbol_1 = VertexOutput(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
2022-11-02 02:25:38 +00:00
|
|
|
tint_symbol_1.Position = (uniforms.inner.modelViewProjectionMatrix * tint_symbol.cur_position);
|
2021-11-16 15:15:36 +00:00
|
|
|
tint_symbol_1.vtxFragColor = tint_symbol.color;
|
|
|
|
return tint_symbol_1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2022-04-22 21:25:02 +00:00
|
|
|
gl_PointSize = 1.0;
|
2022-01-28 22:36:58 +00:00
|
|
|
VertexInput tint_symbol_2 = VertexInput(cur_position_1, color_1);
|
|
|
|
VertexOutput inner_result = vtx_main(tint_symbol_2);
|
|
|
|
vtxFragColor_1 = inner_result.vtxFragColor;
|
|
|
|
gl_Position = inner_result.Position;
|
|
|
|
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
|
|
|
}
|
|
|
|
#version 310 es
|
2023-03-09 19:58:23 +00:00
|
|
|
precision highp float;
|
2021-11-16 15:15:36 +00:00
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
layout(location = 0) in vec4 fragColor_1;
|
|
|
|
layout(location = 0) out vec4 value;
|
2021-12-09 15:45:03 +00:00
|
|
|
struct Uniforms {
|
|
|
|
mat4 modelViewProjectionMatrix;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct VertexInput {
|
|
|
|
vec4 cur_position;
|
|
|
|
vec4 color;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
struct VertexOutput {
|
|
|
|
vec4 vtxFragColor;
|
|
|
|
vec4 Position;
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
vec4 frag_main(vec4 fragColor) {
|
2021-11-16 15:15:36 +00:00
|
|
|
return fragColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
vec4 inner_result = frag_main(fragColor_1);
|
|
|
|
value = inner_result;
|
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|