gles fixes done
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user