浏览代码

Default initialize the affine values.

/4.1
Todd Stinson 4 年前
当前提交
fd010093
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      Assets/Scripts/DisplayDepthImage.cs

6
Assets/Scripts/DisplayDepthImage.cs


// Copy the display rotation matrix from the camera.
Matrix4x4 cameraMatrix = cameraFrameEventArgs.displayMatrix ?? Matrix4x4.identity;
Vector2 affineBasisX;
Vector2 affineBasisY;
Vector2 affineTranslation;
Vector2 affineBasisX = new Vector2(1.0f, 0.0f);
Vector2 affineBasisY = new Vector2(0.0f, 1.0f);
Vector2 affineTranslation = new Vector2(0.0f, 0.0f);
#if UNITY_IOS
affineBasisX = new Vector2(cameraMatrix[0, 0], cameraMatrix[1, 0]);
affineBasisY = new Vector2(cameraMatrix[0, 1], cameraMatrix[1, 1]);

正在加载...
取消
保存