// // ShaderLayer::preGrayscaleShader from 0x1003ba3f0 to 0x1003ba4ee (254 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x1003baf46 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:29:30 +0000 // __int64 __fastcall ShaderLayer::preGrayscaleShader(__int64 a1) { __int64 v1; // rax __int64 result; // rax __int64 v3; // rax __int64 v4; // rax if ( *(float *)(a1 + 980) > 0.0 || cocos2d::CCNode::getActionByTag(a1, 32) ) *(_BYTE *)(a1 + 1078) = 1; v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104)); result = cocos2d::CCGLProgram::setUniformLocationWith1f(v1, *(unsigned int *)(a1 + 1524), *(float *)(a1 + 980)); if ( *(float *)(a1 + 980) > 0.0 ) { v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104)); cocos2d::CCGLProgram::setUniformLocationWith1f(v3, *(unsigned int *)(a1 + 1532), (float)*(char *)(a1 + 984)); v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104)); return cocos2d::CCGLProgram::setUniformLocationWith3f( v4, *(unsigned int *)(a1 + 1528), (float)*(unsigned __int8 *)(a1 + 992) / 255.0, (float)*(unsigned __int8 *)(a1 + 993) / 255.0, (float)*(unsigned __int8 *)(a1 + 994) / 255.0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source