44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using XCEngine;
|
|
|
|
namespace XCEngine.Rendering
|
|
{
|
|
public sealed class DirectionalLightData
|
|
{
|
|
internal static readonly DirectionalLightData Default =
|
|
new DirectionalLightData(
|
|
false,
|
|
false,
|
|
new Vector3(0.0f, 0.0f, -1.0f),
|
|
new Color(1.0f, 1.0f, 1.0f, 1.0f),
|
|
1.0f);
|
|
|
|
internal DirectionalLightData(
|
|
bool enabled,
|
|
bool castsShadows,
|
|
Vector3 direction,
|
|
Color color,
|
|
float intensity)
|
|
{
|
|
this.enabled = enabled;
|
|
this.castsShadows = castsShadows;
|
|
this.direction = direction;
|
|
this.color = color;
|
|
this.intensity = intensity;
|
|
}
|
|
|
|
public bool enabled { get; }
|
|
|
|
public bool castsShadows { get; }
|
|
|
|
public Vector3 direction { get; }
|
|
|
|
public Color color { get; }
|
|
|
|
public float intensity { get; }
|
|
|
|
public bool isValid =>
|
|
enabled;
|
|
}
|
|
}
|
|
|