// // ShaderLayer::preCommonShader from 0x681be0 to 0x681d4a (362 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x6855c0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:56:02 +0000 // int __fastcall ShaderLayer::preCommonShader(ShaderLayer *this) { cocos2d::CCGLProgram *v2; // r0 cocos2d::CCGLProgram *v3; // r0 float v4; // r2 cocos2d::CCGLProgram *v5; // r0 cocos2d::CCGLProgram *v6; // r0 cocos2d::CCGLProgram *v7; // r0 cocos2d::CCGLProgram *v8; // r0 unsigned int v9; // r2 float v10; // s17 cocos2d::CCGLProgram *v11; // r0 cocos2d::CCGLProgram *v12; // r0 v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith3f( v2, *((_DWORD *)this + 264), (float)*((unsigned __int8 *)this + 392) / 255.0, (float)*((unsigned __int8 *)this + 393) / 255.0, (float)*((unsigned __int8 *)this + 394) / 255.0); v3 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); if ( *((int *)this + 235) > 1 ) v4 = 1.0; else v4 = 0.0; cocos2d::CCGLProgram::setUniformLocationWith1f(v3, *((_DWORD *)this + 265), v4); v5 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith1f(v5, *((_DWORD *)this + 266), *((float *)this + 99) + 1.0); v6 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith2f( v6, *((_DWORD *)this + 259), *((float *)this + 96), *((float *)this + 97)); v7 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith2f( v7, *((_DWORD *)this + 260), 1.0 / *((float *)this + 96), 1.0 / *((float *)this + 97)); v8 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); if ( *((int *)this + 235) <= 1 ) v9 = 0; else v9 = *((unsigned __int8 *)this + 404); cocos2d::CCGLProgram::setUniformLocationWith1f(v8, *((_DWORD *)this + 267), (float)v9); v10 = *((float *)this + 252) / *((float *)this + 251); v11 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith1f(v11, *((_DWORD *)this + 262), v10); v12 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); return cocos2d::CCGLProgram::setUniformLocationWith1f(v12, *((_DWORD *)this + 263), 1.0 / v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source