// // ShaderLayer::preInvertColorShader from 0x9f6cb8 to 0x9f6d80 (200 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0x9f7cd0 // > @ 0x6e3a0 // // 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::preInvertColorShader(ShaderLayer *a1) { float m_invertColorEditRGB; // s2 float v3; // s0 float v4; // s1 float v5; // s2 cocos2d::CCGLProgram *v6; // x0 cocos2d::CCAction *ActionByTag; // x0 float v8; // [xsp+20h] [xbp+20h] float v9; // [xsp+30h] [xbp+30h] float v10; // [xsp+40h] [xbp+40h] m_invertColorEditRGB = a1->m_state.m_invertColorEditRGB; if ( m_invertColorEditRGB > 0.0 || (ActionByTag = cocos2d::CCNode::getActionByTag(a1, 34), m_invertColorEditRGB = a1->m_state.m_invertColorEditRGB, ActionByTag) ) { a1->m_state.m_usesShaders = 1; } v3 = m_invertColorEditRGB * a1->m_state.m_invertColorR; v4 = m_invertColorEditRGB * a1->m_state.m_invertColorG; v5 = m_invertColorEditRGB * a1->m_state.m_invertColorB; if ( a1->m_state.m_invertColorClampRGB ) { if ( v3 >= 1.0 ) v3 = 1.0; if ( v4 >= 1.0 ) v4 = 1.0; if ( v5 >= 1.0 ) v5 = 1.0; } v8 = v5; v9 = v4; v10 = v3; v6 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith4f( v6, a1->m_invertColorValueUniform, v10, v9, v8, a1->m_state.m_invertColorEditRGB); }
GD Web Decomp Icon

GD Web Decomp

Raw Source