// // ShaderLayer::triggerChromaticGlitch from 0x140485a00 to 0x140485d15 (789 bytes) // // 2 xrefs: // > GJBaseGameLayer::triggerShaderCommand @ 0x1402215bb // > @ 0x1406dbccc // // 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) { ShaderLayer *v13; // rbx float m_time; // xmm0_4 float m_cGStartTime; // xmm0_4 double v17; // xmm3_8 float m_cGSpeed; // xmm1_4 float v19; // xmm9_4 float m_cGSegmentHeight; // xmm1_4 float m_cGStrength; // xmm1_4 float m_cGLineThickness; // xmm1_4 float m_cGLineStrength; // xmm1_4 v13 = a1; if ( !a1->m_state.m_cGEnable ) { m_time = a1->m_state.m_time; a1->m_state.m_cGStartTime = m_time; a1->m_state.m_cGTime = m_time; } m_cGStartTime = a1->m_state.m_cGStartTime; v17 = a1->m_state.m_time; a1->m_state.m_cGEnable = a2; a1->m_state.m_cGStartTime = v17; a1->m_state.m_cGTime = (float)((float)(v17 - m_cGStartTime) * a1->m_state.m_cGSpeed) + a1->m_state.m_cGTime; if ( a4 != -909190.0 ) { if ( a3 <= 0.0 ) { m_cGSpeed = 0.0; } else { if ( a1->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&a1->m_state, 8); m_cGSpeed = v13->m_state.m_cGSpeed; a1 = v13; } ShaderLayer::tweenValue(a1, m_cGSpeed, a4, 8, a3, a10, a11); } v19 = 1.0 / fmaxf(a9, 0.1); if ( v19 != -909190.0 ) { if ( a3 <= 0.0 ) { m_cGSegmentHeight = 0.0; } else { if ( v13->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v13->m_state, 7); m_cGSegmentHeight = v13->m_state.m_cGSegmentHeight; } ShaderLayer::tweenValue(v13, m_cGSegmentHeight, v19, 7, a3, a10, a11); } if ( a5 != -909190.0 ) { if ( a3 <= 0.0 ) { m_cGStrength = 0.0; } else { if ( v13->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v13->m_state, 4); m_cGStrength = v13->m_state.m_cGStrength; } ShaderLayer::tweenValue(v13, m_cGStrength, a5, 4, a3, a10, a11); } if ( a7 != -909190.0 ) { if ( a3 <= 0.0 ) { m_cGLineThickness = 0.0; } else { if ( v13->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v13->m_state, 5); m_cGLineThickness = v13->m_state.m_cGLineThickness; } ShaderLayer::tweenValue(v13, m_cGLineThickness, a7, 5, a3, a10, a11); } if ( a8 != -909190.0 ) { if ( a3 <= 0.0 ) { m_cGLineStrength = 0.0; } else { if ( v13->m_timesyncShaderActions ) GJShaderState::timesyncShaderAction(&v13->m_state, 6); m_cGLineStrength = v13->m_state.m_cGLineStrength; } ShaderLayer::tweenValue(v13, m_cGLineStrength, a8, 6, a3, a10, a11); } ShaderLayer::tweenValueAuto(v13, a6, 3, a3, a10, a11); v13->m_state.m_cGRelative = a12; v13->m_state.m_cGRelativePos = a13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source