gles fixes done

This commit is contained in:
luboslenco
2024-11-16 01:21:56 +01:00
parent 76f381dcc1
commit 2eda9314ad
2 changed files with 22 additions and 40 deletions
+6 -17
View File
@@ -10,26 +10,15 @@ in vec2 tex_coord;
out float frag_color;
#ifdef ESSL
#define CONST_ARRAY_BEGIN(t, v, n) const t v[n] = t[](
#define CONST_ARRAY_END() );
const float blur_weights[10] = float[](
0.132572, 0.125472, 0.106373, 0.08078, 0.05495, 0.033482, 0.018275, 0.008934, 0.003912, 0.001535
);
#else
#define CONST_ARRAY_BEGIN(t, v, n) const t v[n] = {
#define CONST_ARRAY_END() };
const float blur_weights[10] = {
0.132572, 0.125472, 0.106373, 0.08078, 0.05495, 0.033482, 0.018275, 0.008934, 0.003912, 0.001535
};
#endif
CONST_ARRAY_BEGIN(float, blur_weights, 10)
0.132572,
0.125472,
0.106373,
0.08078,
0.05495,
0.033482,
0.018275,
0.008934,
0.003912,
0.001535
CONST_ARRAY_END()
const float discard_threshold = 0.95;
void main() {