예제 #1
0
        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();
        }
예제 #2
0
 public override void Unload()
 {
     Instance = null;
     Filters.Scene["TemplateMod:GBlur"].Deactivate();
     base.Unload();
 }