diff --git a/Effects/PointLightCollection.cs b/Effects/PointLightCollection.cs index 708a180..53c459b 100644 --- a/Effects/PointLightCollection.cs +++ b/Effects/PointLightCollection.cs @@ -7,7 +7,7 @@ namespace Kav { private readonly Vector3[] positions; private readonly Vector3[] colors; - private readonly float[] intensities = new float[4]; + private readonly float[] intensities; readonly EffectParameter lightPositionsParam; readonly EffectParameter lightColorsParam; @@ -16,6 +16,7 @@ namespace Kav { this.positions = new Vector3[maxLights]; this.colors = new Vector3[maxLights]; + this.intensities = new float[maxLights]; this.lightPositionsParam = lightPositionsParam; this.lightColorsParam = lightColorsParam; }