// Sets the uniform using the top-left 3x3 submatrix of the provided 4x4 matrix. public void SetSubroutineUniformMat3x3(string uniformName, Matrix4x4 value) { if (m_handle == HVR.Interface.Types.INVALID_HANDLE) { return; } CommonTypes.Mat33 mat33 = new CommonTypes.Mat33(); mat33.m = new float[] { value[0, 0], value[1, 0], value[2, 0], value[0, 1], value[1, 1], value[2, 1], value[0, 2], value[1, 2], value[2, 2] }; HvrPlayerInterfaceAPI.Actor_SetSubroutineUniformMat3x3(handle, uniformName, ref mat33); }
public static extern void Actor_SetSubroutineUniformMat3x3(Int32 actor, string uniformName, [In] ref CommonTypes.Mat33 value);