// // ShaderLayer::preRadialBlurShader from 0x100271fac to 0x100272090 (228 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x100273160 // // 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 __fastcall ShaderLayer::preRadialBlurShader(ShaderLayer *a1) { float m_radialBlurSize; // s0 cocos2d::CCGLProgram *v3; // x0 int m_radialBlurValueUniform; // w1 float v5; // s0 float v6; // s8 cocos2d::CCGLProgram *v7; // x0 float v8; // s0 float v9; // s2 float v10; // s8 if ( a1->m_state.m_radialBlurSize != 0.0 || cocos2d::CCNode::getActionByTag(a1, 16) ) a1->m_state.m_usesShaders = 1; m_radialBlurSize = a1->m_state.m_radialBlurSize; if ( m_radialBlurSize == 0.0 ) { v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); m_radialBlurValueUniform = a1->m_radialBlurValueUniform; v5 = 0.0; } else { v6 = m_radialBlurSize * 0.111111111 * 0.200000003; v7 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith1f(v7, a1->m_radialBlurValueUniform, v6); v8 = a1->m_state.m_radialBlurFade * 0.2; v9 = fmaxf(v8, 0.0); if ( v8 <= 0.2 ) v10 = v9; else v10 = 0.2; v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); m_radialBlurValueUniform = a1->m_blurFadeUniform; v5 = v10; } cocos2d::CCGLProgram::setUniformLocationWith1f(v3, m_radialBlurValueUniform, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source