Files
LuaCsForBarotraumaEP/Subsurface/Map/Lights/LightManager.cs
2015-06-07 18:03:08 +03:00

23 lines
514 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Subsurface.Lights
{
class LightManager
{
public static Vector2 viewPos;
public static bool fowEnabled = true;
public static void DrawFow(GraphicsDevice graphics, Camera cam)
{
if (!fowEnabled) return;
foreach (ConvexHull convexHull in ConvexHull.list)
{
convexHull.DrawShadows(graphics, cam, viewPos);
}
}
}
}