gl_FragCoord)*convolutionMatrix.mid int kMatrixSize = 3sigma; for (int i = 0; i < kMatrixSize; ++i) { for (int j = 0; j < kMatrixSize; ++j) { fragmentColor += texture2D(image, gl_FragCoord + vec2(i, j)) * convolutionMatrix[i][j]; } } gl_FragColor = fragmentColor / (kMatrixSize*kMatrixSize) } 26