Beispiel #1
0
 public override void Load()
 {
     instance = this;
     if (!Main.dedServ)
     {
         Filters.Scene["Emperia:Volcano"]       = new Filter(new VolcanoScreenShaderData("FilterMiniTower").UseColor(0.8f, 0.2f, 0.1f).UseOpacity(0.5f), EffectPriority.VeryHigh);
         SkyManager.Instance["Emperia:Volcano"] = new VolcanoSky();
     }
 }
Beispiel #2
0
        public override void Load()
        {
            instance     = this;
            AccessoryKey = RegisterHotKey("Accessory Effects", "Q");
            if (!Main.dedServ)
            {
                Filters.Scene["Emperia:warudo"]   = new Filter(new ZaWARUDO("FilterMiniTower").UseColor(0.12f, 1f, 0.4f).UseOpacity(0.7f), EffectPriority.VeryHigh);
                Filters.Scene["Emperia:Twilight"] = new Filter(new TwilightScreenShaderData("FilterMiniTower").UseColor(1f, 0.5f, 1f).UseOpacity(0.4f), EffectPriority.VeryHigh);
                //SkyManager.Instance["Emperia:Bloom"] = new PuritySpiritSky();
            }
            GraphicsDevice device     = Main.graphics.GraphicsDevice;
            Texture2D      whitePixel = new Texture2D(device, 1, 1);

            BasicEffect basicEffect = new BasicEffect(device);

            basicEffect.VertexColorEnabled = true;
            basicEffect.TextureEnabled     = true;
            basicEffect.Projection         = Matrix.CreateOrthographicOffCenter
                                                 (0, Main.graphics.GraphicsDevice.Viewport.Width, // left, right
                                                 Main.graphics.GraphicsDevice.Viewport.Height, 0, // bottom, top
                                                 0, 1);
            basicEffect.Texture = whitePixel;                                                     //give it the white pixel texture
        }