//
// ShaderLayer::updateZLayer from 0x10026e0c8 to 0x10026e13c (116 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x1001f0cc8
//
// 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
//
bool __fastcall ShaderLayer::updateZLayer(ShaderLayer *a1, int a2, int a3, bool a4)
{
int v4; // w9
int v5; // w8
if ( a2 <= 1 )
v4 = 1;
else
v4 = a2;
if ( a3 >= 1 )
v5 = a3;
else
v5 = 15;
if ( a1->m_state.m_minBlendingLayer != v4 )
{
a1->m_state.m_minBlendingLayer = v4;
a1->m_state.m_zLayerDirty = 1;
}
if ( a1->m_state.m_maxBlendingLayer != v5 )
{
a1->m_state.m_maxBlendingLayer = v5;
a1->m_state.m_zLayerDirty = 1;
}
if ( a1->m_state.m_noPlayerParticles != a4 )
{
a1->m_state.m_noPlayerParticles = a4;
if ( a2 == 8 || v5 == 8 )
a1->m_state.m_zLayerDirty = 1;
}
return (char)a1;
}