// // ShaderLayer::preGrayscaleShader from 0x1003d0ed0 to 0x1003d0fce (254 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x1003d1a16 // // 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::preGrayscaleShader(ShaderLayer *a1) { cocos2d::CCGLProgram *v1; // rax cocos2d::CCGLProgram *v2; // rax cocos2d::CCGLProgram *v3; // rax if ( a1->m_state.m_grayscaleValue > 0.0 || cocos2d::CCNode::getActionByTag(a1, 32) ) a1->m_state.m_usesShaders = 1; v1 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith1f(v1, a1->m_grayscaleValueUniform, a1->m_state.m_grayscaleValue); if ( a1->m_state.m_grayscaleValue > 0.0 ) { v2 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith1f( v2, a1->m_grayscaleUseLumUniform, (float)a1->m_state.m_grayscaleUseLum); v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::setUniformLocationWith3f( v3, a1->m_grayscaleTintUniform, (float)a1->m_state.m_grayscaleTint.r / 255.0, (float)a1->m_state.m_grayscaleTint.g / 255.0, (float)a1->m_state.m_grayscaleTint.b / 255.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source