spine动画 作为ClippingNode的 模版, 在WINDOW下正常, 在安卓平台运行的时候就出问题了, 坐标等等全部被重置为默认值并且无法修改, 有人遇到过这个问题吗?
%url%%url%翻译结果
UPUPUPUUP~~
help!!!!!!!!
给出重现的代码和Spine模型文件,以及Cocos2d-x版本。感谢~
找到问题了, 是着色器的问题, WINDOW下没有使用着色器,所以没问题。 引擎是最新的3.3f,spine也是官方最新的SDK。
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
#else
// since glAlphaTest do not exists in OES, use a shader that writes
// pixel only if greater than an alpha threshold
GLProgram *program = GLProgramCache::getInstance()->getGLProgram(GLProgram::SHADER_NAME_POSITION_TEXTURE_ALPHA_TEST_NO_MV);
GLint alphaValueLocation = glGetUniformLocation(program->getProgram(), GLProgram::UNIFORM_NAME_ALPHA_TEST_VALUE);
// set our alphaThreshold
program->use();
program->setUniformLocationWith1f(alphaValueLocation, _alphaThreshold);
// we need to recursively apply this shader to all the nodes in the stencil node
// FIXME: we should have a way to apply shader to all nodes without having to do this
setProgram(_stencil, program);
#endif
一使用着色器,spine 动画的矩阵全部为默认值, 并且修改无效
help··········
这个问题现在有修复吗