File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -219,14 +219,14 @@ -(void)buildFragmentFunctions
219
219
GLfloat optimizedWeight = firstWeight + secondWeight;
220
220
GLfloat optimizedOffset = (firstWeight * (currentOverlowTextureRead * 2 + 1 ) + secondWeight * (currentOverlowTextureRead * 2 + 2 )) / optimizedWeight;
221
221
222
- [shaderString appendFormat: @" blurCoords = v_blurCoordinates[0] + singleStepOffset * %f ) ;\n " , optimizedOffset];
222
+ [shaderString appendFormat: @" blurCoords = v_blurCoordinates[0] + singleStepOffset * %f ;\n " , optimizedOffset];
223
223
[shaderString appendString: @" compare = cc_FragTexCoord1Extents - abs(blurCoords - cc_FragTexCoord1Center);" ];
224
224
[shaderString appendString: @" inBounds = step(0.0, min(compare.x, compare.y));" ];
225
225
[shaderString appendFormat: @" srcPixel = texture2D(cc_PreviousPassTexture, blurCoords);\n " ];
226
226
[shaderString appendString: @" luminanceCheck = step(u_luminanceThreshold, dot(srcPixel.rgb, luminanceWeighting));\n " ];
227
227
[shaderString appendFormat: @" src += inBounds * luminanceCheck * srcPixel * %f ;\n " , optimizedWeight];
228
228
229
- [shaderString appendFormat: @" blurCoords = v_blurCoordinates[0] - singleStepOffset * %f ) ;\n " , optimizedOffset];
229
+ [shaderString appendFormat: @" blurCoords = v_blurCoordinates[0] - singleStepOffset * %f ;\n " , optimizedOffset];
230
230
[shaderString appendString: @" compare = cc_FragTexCoord1Extents - abs(blurCoords - cc_FragTexCoord1Center);" ];
231
231
[shaderString appendString: @" inBounds = step(0.0, min(compare.x, compare.y));" ];
232
232
[shaderString appendFormat: @" srcPixel = texture2D(cc_PreviousPassTexture, blurCoords);\n " ];
You can’t perform that action at this time.
0 commit comments