| 7 |
| varying vec2 twoStepsLeftTextureCoordinate; |
| 8 | varying vec2 threeStepsLeftTextureCoordinate; |
| 9 | varying vec2 fourStepsLeftTextureCoordinate; |
| 10 | varying vec2 oneStepRightTextureCoordinate; |
| 11 | varying vec2 twoStepsRightTextureCoordinate; |
| 12 | varying vec2 threeStepsRightTextureCoordinate; |
| 13 | varying vec2 fourStepsRightTextureCoordinate; |
| 14 |
| 15 | void main() { |
| 16 | lowp vec4 fragmentColor = texture2D(sTexture, centerTextureCoordinate) * 0.38026; |
| 17 |
| 18 | fragmentColor += texture2D(sTexture, oneStepLeftTextureCoordinate) * 0.27667; |
| 19 | fragmentColor += texture2D(sTexture, oneStepRightTextureCoordinate) * 0.27667; |
| 20 |
| 21 | fragmentColor += texture2D(sTexture, twoStepsLeftTextureCoordinate) * 0.08074; |
| 22 | fragmentColor += texture2D(sTexture, twoStepsRightTextureCoordinate) * 0.08074; |
| 23 |
| 24 | fragmentColor += texture2D(sTexture, threeStepsLeftTextureCoordinate) * -0.02612; |
| 25 | fragmentColor += texture2D(sTexture, threeStepsRightTextureCoordinate) * -0.02612; |
| 26 |
| 27 | fragmentColor += texture2D(sTexture, fourStepsLeftTextureCoordinate) * -0.02143; |
| 28 | fragmentColor += texture2D(sTexture, fourStepsRightTextureCoordinate) * -0.02143; |
| 29 |
| 30 | gl_FragColor = fragmentColor; |
| 31 | } |