//
// ShaderLayer::setupGrayscaleShader from 0x1003cbba0 to 0x1003cbc1f (127 bytes)
//
// 0 xrefs:
//
// 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::setupGrayscaleShader(ShaderLayer *a1)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
v2 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
a1->m_grayscaleValueUniform = glGetUniformLocation(*(_DWORD *)(v2 + 56), "_grayscaleValue");
v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
a1->m_grayscaleTintUniform = glGetUniformLocation(*(_DWORD *)(v3 + 56), "_grayscaleTint");
v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
a1->m_grayscaleUseLumUniform = glGetUniformLocation(*(_DWORD *)(v4 + 56), "_grayscaleUseLum");
}