public override void Load() { Instance = this; // 注意设置正确的Pass名字 Filters.Scene["TemplateMod:GBlur"] = new Filter( new TestScreenShaderData(new Ref <Effect>(GetEffect("Effects/ShockWave")), "Test"), EffectPriority.Medium); Filters.Scene["TemplateMod:GBlur"].Load(); npcEffect = GetEffect("Effects/EDge"); base.Load(); }
public override void Unload() { Instance = null; Filters.Scene["TemplateMod:GBlur"].Deactivate(); base.Unload(); }