Example #1
0
        public LightSource GenerateLightSource(Vector2 position, Vector2 size, Color lightingColor, float deltaAlpha)
        {
            float scale = Math.Min(size.X / lightTexture.Width, size.Y / lightTexture.Height);

            LightSource temp;
            temp = new LightSource(position, scale, lightingColor);
            temp.DeltaAlpha = deltaAlpha;

            lightingSources.Add(temp);

            return temp;
        }
Example #2
0
 public void RemoveLightSource(LightSource lightSource)
 {
     lightingSources.Remove(lightSource);
 }