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; }
public void RemoveLightSource(LightSource lightSource) { lightingSources.Remove(lightSource); }