/// <summary>
            /// Constructs the ARKit camera functionality provider.
            /// </summary>
            public ARKitProvider()
            {
                NativeApi.UnityARKit_Camera_Construct(k_TextureYPropertyNameId, k_TextureCbCrPropertyNameId);

                string shaderName = ARKitCameraSubsystem.backgroundShaderName;

                if (shaderName == null)
                {
                    Debug.LogError("Cannot create camera background material compatible with the render pipeline");
                }
                else
                {
                    m_CameraMaterial = CreateCameraMaterial(shaderName);
                }
            }
Beispiel #2
0
 /// <summary>
 /// Constructs the ARKit camera functionality provider.
 /// </summary>
 public Provider()
 {
     NativeApi.UnityARKit_Camera_Construct(k_TextureYPropertyNameId,
                                           k_TextureCbCrPropertyNameId);
 }