// // ShaderLayer::objectPosToShaderPos from 0x10026f188 to 0x10026f220 (152 bytes) // // 7 xrefs: // > ShaderLayer::updateEffectOffsets @ 0x10026f2f0 // > ShaderLayer::updateEffectOffsets @ 0x10026f51c // > ShaderLayer::updateEffectOffsets @ 0x10026f734 // > ShaderLayer::updateEffectOffsets @ 0x10026f854 // > ShaderLayer::updateEffectOffsets @ 0x10026fa34 // > ShaderLayer::updateEffectOffsets @ 0x10026fbd4 // > ShaderLayer::updateEffectOffsets @ 0x10026fcd4 // // 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 // cocos2d::CCPoint __fastcall ShaderLayer::objectPosToShaderPos(ShaderLayer *a1, cocos2d::CCPoint a2) { const cocos2d::CCPoint *v2; // x1 float32x2_t *v3; // x8 float32x2_t *v5; // x20 __n128 v6; // q0 __n128 v7; // q1 float32x2_t *v8; // x0 float32x2_t v9; // d1 float32x2_t v10; // d0 float32x2_t v11; // [xsp+0h] [xbp-20h] BYREF cocos2d::CCPoint v12; // [xsp+8h] [xbp-18h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v5 = v3; cocos2d::CCNode::convertToWorldSpace(a1->m_gameLayer->m_objectLayer, v2); cocos2d::CCNode::convertToNodeSpace(a1, &v12); v6.n128_f64[0] = sub_1000229D0(&v12, (double *)&v11); v6.n128_f32[0] = v12.x / a1->m_targetTextureSize.width; v7.n128_f32[0] = v12.y / a1->m_targetTextureSize.height; v8 = (float32x2_t *)sub_100022980(v6, v7, v5); sub_100022A14(v8, &v11, a1->m_scaleFactor); sub_1000229D0(v5, (double *)&v11); v9 = *v5; v10 = vdiv_f32(*v5, *(float32x2_t *)&a1->m_state.m_textureScaleX); *v5 = v10; result.x = v10.f32[0]; result.y = v9.f32[0]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source