Shader and tables ?

Can you pass a 2-dim table (array) to a shader ?
For example a 6x6 matrix.
Thanks

Yes, but you would pass it in as a 1D array, so in your shader code:


uniform float myMatrix[36];

And in Codea


myShader.myMatrix = { 1, 2, 3, 4, 5, ... 36 }

This is perfect. Thank you