Optimize the performance of BlurSpriteTest in Shader Sprite.

This commit is contained in:
zhangbin 2014-03-31 10:44:48 +08:00
parent 1328d1a898
commit 95ab15195c
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ void BlurSprite::buildCustomUniforms()
_pixelSize = Point(1/s.width, 1/s.height);
_samplingRadius = 0;
setBlurSize(10.0f);
setBlurSize(3.0f);
auto program = getShaderProgram();
pixelSizeLocation = program->getUniformLocation("onePixelSize");
coefficientLocation = program->getUniformLocation("gaussianCoefficient");