//
// ShaderLayer::triggerChromaticGlitch from 0x5501b4 to 0x55029e (234 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x470724
//
// 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 ShaderLayer::triggerChromaticGlitch(
ShaderLayer *a1,
bool a2,
float a3,
float a4,
float a5,
float a6,
float a7,
float a8,
float a9,
int a10,
float a11,
bool a12,
bool a13)
{
double m_time; // d6
float v16; // s15
float v17; // s14
float v18; // s12
float v19; // s15
m_time = a1->m_state.m_time;
if ( !a1->m_state.m_cGEnable )
{
v16 = m_time;
a1->m_state.m_cGStartTime = v16;
a1->m_state.m_cGTime = v16;
}
a1->m_state.m_cGEnable = a2;
v17 = m_time - a1->m_state.m_cGStartTime;
v18 = m_time;
a1->m_state.m_cGTime = a1->m_state.m_cGTime + (float)(v17 * a1->m_state.m_cGSpeed);
a1->m_state.m_cGStartTime = v18;
ShaderLayer::tweenValueAuto(a1, a4, 8, a3, a10, a11);
if ( a9 < 0.1 )
v19 = 10.0;
else
v19 = 1.0 / a9;
ShaderLayer::tweenValueAuto(a1, v19, 7, a3, a10, a11);
ShaderLayer::tweenValueAuto(a1, a5, 4, a3, a10, a11);
ShaderLayer::tweenValueAuto(a1, a7, 5, a3, a10, a11);
ShaderLayer::tweenValueAuto(a1, a8, 6, a3, a10, a11);
ShaderLayer::tweenValueAuto(a1, a6, 3, a3, a10, a11);
a1->m_state.m_cGRelative = a12;
a1->m_state.m_cGRelativePos = a13;
}