This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
EffectMatrixVariable Can't send a Matrix3x3[] to my shader #984
Open
Description
Hello,
like the title say, i want to send my matrix3x3 array to my shader but everytime i get an exception: "ivalid matrix size: Must be 64 bytes, 16 float"
If i understand this right, he wants always a matrix4x4.
Is this a bug or do i make samething wrong?
Heres my code:
` List list = new List();
list.Add(Matrix3x3.Identity);
list.Add(Matrix3x3.Identity);
list.Add(Matrix3x3.Identity);
EffectMatrixVariable effectMatrixVariable = this.effect.GetVariableByName(name).AsMatrix();
effectMatrixVariable.SetMatrix<Matrix3x3>(list.ToArray());`
Greets
Benjamin