public static CommonTypes.Mat44 GetMat44FromMatrix4x4(Matrix4x4 m) { CommonTypes.Mat44 mat44 = new CommonTypes.Mat44(); for (int a = 0; a < 16; ++a) { mat44.m[a] = m[a]; } return(mat44); }
public void SetSubroutineUniformMat4x4(string uniformName, Matrix4x4 value) { if (m_handle == HVR.Interface.Types.INVALID_HANDLE) { return; } CommonTypes.Mat44 mat44 = new CommonTypes.Mat44(); mat44.m = new float[] { value[0, 0], value[1, 0], value[2, 0], value[3, 0], value[0, 1], value[1, 1], value[2, 1], value[3, 1], value[0, 2], value[1, 2], value[2, 2], value[3, 2], value[0, 3], value[1, 3], value[2, 3], value[3, 3] }; HvrPlayerInterfaceAPI.Actor_SetSubroutineUniformMat4x4(handle, uniformName, ref mat44); }
public static extern void Actor_SetSubroutineUniformMat4x4(Int32 actor, string uniformName, [In] ref CommonTypes.Mat44 value);
public static extern void Viewport_SetProjMatrix(Int32 viewport, CommonTypes.Mat44 projMat44);
public static extern void Actor_SetTransform(Int32 actor, CommonTypes.Mat44 transform);