Can anyone know how to reset hlsl float4x4? The issue that i encounter is, when i pass bone matrix in hlsl in first model it work fine. when i have another skinned model in scene, seem like the matrix array is overlap.
The current solution i have is
//reset matrx
_effect.Parameters[“bones”].SetValue(new Microsoft.Xna.Framework.Matrix[boneMatrix.Length]);
//set matrx
_effect.Parameters[“bones”].SetValue(boneMatrix);
is there any other better solution?