mirror of https://github.com/axmolengine/axmol.git
Optimize the performance of BlurSpriteTest in Shader Sprite.
This commit is contained in:
parent
1328d1a898
commit
95ab15195c
|
@ -302,7 +302,7 @@ void BlurSprite::buildCustomUniforms()
|
||||||
_pixelSize = Point(1/s.width, 1/s.height);
|
_pixelSize = Point(1/s.width, 1/s.height);
|
||||||
_samplingRadius = 0;
|
_samplingRadius = 0;
|
||||||
|
|
||||||
setBlurSize(10.0f);
|
setBlurSize(3.0f);
|
||||||
auto program = getShaderProgram();
|
auto program = getShaderProgram();
|
||||||
pixelSizeLocation = program->getUniformLocation("onePixelSize");
|
pixelSizeLocation = program->getUniformLocation("onePixelSize");
|
||||||
coefficientLocation = program->getUniformLocation("gaussianCoefficient");
|
coefficientLocation = program->getUniformLocation("gaussianCoefficient");
|
||||||
|
|
Loading…
Reference in New Issue