You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
631 B
C#

using System;
using Duality;
using Duality.Resources;
using Duality.Editor;
using Duality.Properties;
using Duality.Drawing;
using DynamicLighting.Properties;
namespace DynamicLighting
{
[EditorHintCategory(CoreResNames.CategoryGraphics)]
[EditorHintImage(DynLightResNames.IconResourceLightingTechnique)]
public class LightingTechnique : DrawTechnique
{
public override bool NeedsPreparation
{
get { return true; }
}
public override void PrepareRendering(IDrawDevice device, BatchInfo material)
{
base.PrepareRendering(device, material);
DynamicLighting.Light.SetupLighting(device, material);
}
}
}