fix intensity array for point lights
parent
ffcb3326e8
commit
7d05840277
|
@ -7,7 +7,7 @@ namespace Kav
|
||||||
{
|
{
|
||||||
private readonly Vector3[] positions;
|
private readonly Vector3[] positions;
|
||||||
private readonly Vector3[] colors;
|
private readonly Vector3[] colors;
|
||||||
private readonly float[] intensities = new float[4];
|
private readonly float[] intensities;
|
||||||
|
|
||||||
readonly EffectParameter lightPositionsParam;
|
readonly EffectParameter lightPositionsParam;
|
||||||
readonly EffectParameter lightColorsParam;
|
readonly EffectParameter lightColorsParam;
|
||||||
|
@ -16,6 +16,7 @@ namespace Kav
|
||||||
{
|
{
|
||||||
this.positions = new Vector3[maxLights];
|
this.positions = new Vector3[maxLights];
|
||||||
this.colors = new Vector3[maxLights];
|
this.colors = new Vector3[maxLights];
|
||||||
|
this.intensities = new float[maxLights];
|
||||||
this.lightPositionsParam = lightPositionsParam;
|
this.lightPositionsParam = lightPositionsParam;
|
||||||
this.lightColorsParam = lightColorsParam;
|
this.lightColorsParam = lightColorsParam;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue