Files
LuaCsForBarotraumaEP/Subsurface/Map/Lights/LightManager.cs
2015-05-25 01:04:03 +03:00

27 lines
600 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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);
}
}
}
}