// // ShaderLayer::preHueShiftShader from 0x9f6dec to 0x9f6e94 (168 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0x9f7cd8 // > @ 0x54258 // // 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::preHueShiftShader(ShaderLayer *a1) { float m_hueShiftDegrees; // s0 float v3; // s8 float v4; // s0 float v5; // s0 cocos2d::CCAction *ActionByTag; // x0 cocos2d::CCGLProgram *v7; // [xsp+28h] [xbp+28h] cocos2d::CCGLProgram *v8; // [xsp+28h] [xbp+28h] m_hueShiftDegrees = a1->m_state.m_hueShiftDegrees; if ( m_hueShiftDegrees != 0.0 || (ActionByTag = cocos2d::CCNode::getActionByTag(a1, 38), m_hueShiftDegrees = a1->m_state.m_hueShiftDegrees, ActionByTag) ) { a1->m_state.m_usesShaders = 1; } v3 = m_hueShiftDegrees * 0.017453; v7 = a1->m_sprite->getShaderProgram(a1->m_sprite); v4 = cosf(v3); cocos2d::CCGLProgram::setUniformLocationWith1f(v7, a1->m_hueShiftCosAUniform, v4); v8 = a1->m_sprite->getShaderProgram(a1->m_sprite); v5 = sinf(v3); cocos2d::CCGLProgram::setUniformLocationWith1f(v8, a1->m_hueShiftSinAUniform, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source