Handle weapon wheel blur shader in the event handler.

This commit is contained in:
Mari the Deer 2023-10-23 17:30:04 +02:00
commit 6392a89cb9
3 changed files with 11 additions and 12 deletions

View file

@ -31,6 +31,14 @@ extend Class SWWMHandler
if ( !swwm_shaders ) ClearAllShaders(true);
return;
}
// handle weapon wheel shader here
if ( wsel )
{
PPShader.SetEnabled("BokehSel",true);
double salph = SWWMUtility.Lerp(wsel.olalph,wsel.alph,e.fractic);
PPShader.SetUniform1f("BokehSel","strength",salph);
}
else PPShader.SetEnabled("BokehSel",false);
let divi = DivineSpriteEffect(mo.FindInventory("DivineSpriteEffect"));
if ( divi )
{