File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ See [fshader.frag](https://github.com/tranvansang/bilateral-filter/blob/master/f
12
12
13
13
## Note:
14
14
- This project is created using Qt 5.9.1
15
- - This project requires GLSL compiler ver 4.10
16
- - Tested in window 7
17
- - Currently, cannot compile in Ubuntu because of OpenGL driver problem
15
+ - This project requires GLSL compiler ver 4.50
16
+ - Tested in Ubuntu
18
17
- Execute ` BilatteralFiltering.exe ` directly in Window to run program without compiling (non tested)
19
18
20
19
## Screenshots:
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ uniform float sigmaL;
7
7
8
8
#define EPS 1e-5
9
9
10
- vec4 filtering;
11
10
out vec4 FragColor;
12
11
13
12
float lum(in vec4 color) {
@@ -29,8 +28,8 @@ void main()
29
28
30
29
float l = lum(texture2D (texture,v_texcoord));
31
30
32
- for (float i = - halfSize; i <= halfSize; i++ ){
33
- for (float j = - halfSize; j <= halfSize; j++ ){
31
+ for (float i = - halfSize; i <= halfSize; i ++ ){
32
+ for (float j = - halfSize; j <= halfSize; j ++ ){
34
33
vec2 pos = vec2 (i, j);
35
34
vec4 offsetColor = texture2D (texture, v_texcoord + pos / textureSize2);
36
35
@@ -46,6 +45,5 @@ void main()
46
45
}
47
46
}
48
47
49
- filtering = sumC/ sumW;
50
- FragColor = filtering;
48
+ FragColor = sumC/ sumW;
51
49
}
You can’t perform that action at this time.
0 commit comments