How can I pass a Matrix4x4 parameter to a ComputeShader?
Materials have the SetMatrix method but ComputeShaders lack this.
I thought maybe SetFloats to pass the Matrix4x4 as a float array like I would do with OpenGL but there doesn't seem to be any straightforward way to get an array from a Matrix4x4.
Using version 5.4b.
↧