internal static void DrawFlare(LightId id) { if (id.FlareId != FlareId.NULL) { MyFlareRenderer.Draw(id.FlareId, id.SpotPosition); } }
internal static void Remove(uint GID, LightId light) { IdIndex.Remove(GID); if (Pointlights[light.Index].BvhProxyId != -1) { PointlightsBvh.RemoveProxy(Pointlights[light.Index].BvhProxyId); } if (Spotlights[light.Index].BvhProxyId != -1) { SpotlightsBvh.RemoveProxy(Spotlights[light.Index].BvhProxyId); } MyFlareRenderer.Remove(light.FlareId); DirtyPointlights.Remove(light); DirtySpotlights.Remove(light); Lights.Free(light.Index); }