Gaussian blur

bug fixes
This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent 5159afba51
commit 0d6b01421f
17 changed files with 220 additions and 83 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ uniform sampler2D tex;
void main(){
int amount=5;
float weight[5] = float[] (0.227027, 0.1945946, 0.1216216, 0.054054,0.016216);
vec2 texel=1/textureSize(tex,0);
vec2 texel=1.0/textureSize(tex,0);
vec3 c=texture(tex,texCoords).rgb*weight[0];
for(int i=1;i<amount;i++){