These functions do not seem to actually set anything.
Maybe I am doing it wrong, but when I do a setColor3Array
with a value of [color, color, color], things work and the xyz values are set.
On the contrary if I use setArray3 or setArray2 with values of [vector, vector, vector] the JS object shows the correct values the shader dose not actually get set.
I am wondering why that is? I see that the color three does this:
this._colors3Arrays[name] = value.reduce((arr, color) => {
color.toArray(arr, arr.length);
return arr;
}, []);
which the other array setters do not, but it seems even passing [[val,val],[val,val]] to like the setArray2 still does not work.
Maybe a bug?