fix intensity array for point lights

pull/1/head
cosmonaut 2020-08-22 18:00:04 -07:00
parent ffcb3326e8
commit 7d05840277
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}