public override void InitializeEntity(Entity entity) { Engine.Componets.Light light = entity.GetComponent <Engine.Componets.Light>(); light.PointLight.ShadowType = light.ShadowType; penumbra.Lights.Add(light.PointLight); }
public void UpdateLights() { foreach (Entity entity in Entities) { Engine.Componets.Light light = entity.GetComponent <Engine.Componets.Light>(); light.PointLight.Position = WindowManager.ToScreenPosition(light.Position); } }
public override void RemoveFromSystem(Entity entity) { Engine.Componets.Light light = entity.GetComponent <Engine.Componets.Light>(); penumbra.Lights.Remove(light.PointLight); }