Hi, i need to send and array of matrix4x4 from script to shader and then pass it to a custom expression and use in "for" bucle.
I send with " oceanMat.SetMatrixArray(waves_shaderPropertyID, matrixGerstnerWaves); "
and shader have his global array node.
ok,no error,i think its correct.
Well the problem its to use in custom expresion,i want connect this array to custom expresion and then use it like
for(int i = 0; i<matrixArray.Lenght;i++){
float4x4 matrix = matrixArray[i];
matrix[0][0]
matrix[1][0]
matrix[2][0]
etc....
}
Then the question is, how i can connect array to a custom expresion, i dont find any compatible type in custom Expression node, i try custom type with no results.
For iterance limit in "for" bucle i can manage in other ways sending extra "int",but i dont know hoy connect the array to use in custom expresion
Thanks, sorry for my english, its low.