Ejemplo n.º 1
0
        public override void PostInitialize(GameTime gameTime, GameEngine.TeeEngine engine)
        {
            // Todo: this should technically NOT be here.
            this.Pos += new Vector2(Width / 2.0f, Height / 2.0f);

            LightShader lightShader = (LightShader)engine.GetPostGameShader("LightShader");

            lightShader.LightSources.Add(this);
        }
Ejemplo n.º 2
0
        public override void PostDestroy(GameTime gameTime, GameEngine.TeeEngine engine)
        {
            LightShader lightShader = (LightShader)engine.GetPostGameShader("LightShader");

            lightShader.LightSources.Remove(this);
        }