AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
CalibrationSpace.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEngine;
5 
6 namespace HoloToolkit.Unity
7 {
11  public class CalibrationSpace : MonoBehaviour
12  {
13  private void Update()
14  {
15  Shader.SetGlobalMatrix("CalibrationSpaceWorldToLocal", transform.worldToLocalMatrix);
16  Shader.SetGlobalMatrix("CalibrationSpaceLocalToWorld", transform.localToWorldMatrix);
17  }
18  }
19 }
Sets global shader variables relating to calibration space transforms