Handle weapon wheel blur shader in the event handler.
This commit is contained in:
parent
27b41a4353
commit
6392a89cb9
3 changed files with 11 additions and 12 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue