//
// ShaderLayer::triggerRadialBlur from 0x140486a90 to 0x140486d26 (662 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x14022187e
// > ??> @ 0x1406dbd74
//
// 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::triggerRadialBlur(
ShaderLayer *a1,
float a2,
float a3,
float a4,
float a5,
int a6,
float a7,
float a8,
bool a9,
int a10,
int a11,
float a12,
bool a13)
{
ShaderLayer *v13; // rbx
float m_radialBlurFade; // xmm1_4
float m_blurIntensity; // xmm1_4
float m_radialBlurSize; // xmm1_4
float x; // xmm1_4
float y; // xmm1_4
v13 = a1;
a1->m_state.m_blurRefChannel = a6;
if ( a5 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_radialBlurFade = 0.0;
}
else
{
if ( a1->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&a1->m_state, 48);
m_radialBlurFade = v13->m_state.m_radialBlurFade;
a1 = v13;
}
ShaderLayer::tweenValue(a1, m_radialBlurFade, a5, 48, a2, a11, a12);
}
if ( a4 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_blurIntensity = 0.0;
}
else
{
if ( v13->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v13->m_state, 47);
m_blurIntensity = v13->m_state.m_blurIntensity;
}
ShaderLayer::tweenValue(v13, m_blurIntensity, a4, 47, a2, a11, a12);
}
if ( a3 != -909190.0 )
{
if ( a2 <= 0.0 )
{
m_radialBlurSize = 0.0;
}
else
{
if ( v13->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v13->m_state, 16);
m_radialBlurSize = v13->m_state.m_radialBlurSize;
}
ShaderLayer::tweenValue(v13, m_radialBlurSize, a3, 16, a2, a11, a12);
}
if ( a7 != -909190.0 )
{
if ( a2 <= 0.0 )
{
x = 0.0;
}
else
{
if ( v13->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v13->m_state, 17);
x = v13->m_state.m_radialBlurScreenOffset.x;
}
ShaderLayer::tweenValue(v13, x, a7, 17, a2, a11, a12);
}
if ( a8 != -909190.0 )
{
if ( a2 <= 0.0 )
{
y = 0.0;
}
else
{
if ( v13->m_timesyncShaderActions )
GJShaderState::timesyncShaderAction(&v13->m_state, 18);
y = v13->m_state.m_radialBlurScreenOffset.y;
}
ShaderLayer::tweenValue(v13, y, a8, 18, a2, a11, a12);
}
v13->m_state.m_radialBlurTarget = a9;
v13->m_state.m_radialBlurTargetID = a10;
v13->m_state.m_blurOnlyEmpty = a13;
}