How do I set an array of 3x3 matrices within a material's shader?
I'm creating a shader for performing grid-based image warping, where each cell within the grid has its own 3x3 homogeneous matrix that describes how the UVs within that area are to be warped. Basically, I have the an array of float3x3s within my shader;
static const int GRID_SIZE = 16;
...
float3x3 _WarpProjectiveMappings[GRID_SIZE * GRID_SIZE];
Now, the part where I'm unsure is how I go about setting these matrices from my scripts. I'm aware that the Material class has the SetMatrixArray() method, but this method uses Matrix4x4s (there doesn't seem to be any Matrix3x3 structure within Unity).
Your answer

Follow this Question
Related Questions
[ShaderGraph] Help with transforming a World Space Vector3 to a Screen Space Vector2 1 Answer
A Unity bug or is my matrix shader broken? 0 Answers
how to hide objects inside an invisible object? 0 Answers
Real-time Mesh deformation / animation / shader 0 Answers
Simulate a neuron firing effect? 1 Answer