// // ShaderLayer::preChromaticShader from 0x54d4fc to 0x54d5e6 (234 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x54f2a8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void ShaderLayer::preChromaticShader(ShaderLayer *a1) { GJBaseGameLayer *m_gameLayer; // r3 float v3; // s18 float v4; // s15 float v5; // s17 float v6; // s16 cocos2d::CCGLProgram *v7; // r0 cocos2d::CCGLProgram *v8; // r0 if ( a1->m_state.m_chromaticTargetX != 0.0 || a1->m_state.m_chromaticTargetY != 0.0 || cocos2d::CCNode::getActionByTag(a1, 1) || cocos2d::CCNode::getActionByTag(a1, 2) ) { a1->m_state.m_usesShaders = 1; } if ( a1->m_state.m_chromaticRelative && (m_gameLayer = a1->m_gameLayer) != nullptr ) v3 = fabsf(m_gameLayer->m_objectLayer->getScale(m_gameLayer->m_objectLayer)); else v3 = 1.0; v4 = a1->m_scaleFactor / 1.2019; v5 = v4 / a1->m_targetTextureSize.width; v6 = v4 / a1->m_targetTextureSize.height; v7 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith1f( v7, a1->m_chromaticXOffUniform, (float)((float)(v5 * a1->m_state.m_chromaticTargetX) * a1->m_state.m_textureScaleX) * v3); v8 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith1f( v8, a1->m_chromaticYOffUniform, (float)((float)(v6 * a1->m_state.m_chromaticTargetY) * a1->m_state.m_textureScaleY) * v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source