using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.Simulation
{
///
/// Provides camera specifications and simulated EXIF data for a Camera GameObject for XR Simulation.
///
[RequireComponent(typeof(Camera))]
[DisallowMultipleComponent]
[AddComponentMenu("")]
public class SimulatedExifData : MonoBehaviour
{
///
/// The lens aperture.
///
[SerializeField]
[Tooltip("The lens aperture. Default value comes from sample ARKit data.")]
double m_ApertureValue = 1.356;
///
/// The exposure bias.
///
[SerializeField]
[Tooltip("The exposure bias. Default value comes from sample ARKit data.")]
float m_ExposureBiasValue = 0.0f;
///
/// The lens focal length in millimeters.
///
[SerializeField]
[Tooltip("The lens focal length in millimeters. Default value comes from sample ARKit data.")]
float m_FocalLength = 5.96f;
///
/// The metering mode.
///
[SerializeField]
[Tooltip("The metering mode. Default value comes from sample ARKit data.")]
XRCameraFrameExifDataMeteringMode m_MeteringMode = XRCameraFrameExifDataMeteringMode.Pattern;
///
/// The photographic sensitivity (ISO).
///
[SerializeField]
[Tooltip("The photographic sensitivity (ISO). Default value comes from sample ARKit data.")]
short m_PhotographicSensitivity = 400;
///
/// Get the lens aperture.
///
/// The lens aperture.
public double apertureValue
{
get => m_ApertureValue;
set => m_ApertureValue = value;
}
///
/// Get the exposure bias.
///
/// The exposure bias.
public float exposureBiasValue
{
get => m_ExposureBiasValue;
set => m_ExposureBiasValue = value;
}
///
/// Get the lens focal length in millimeters.
///
/// The lens focal length in millimeters.
public float focalLength
{
get => m_FocalLength;
set => m_FocalLength = value;
}
///
/// Get the metering mode.
///
/// The metering mode.
public XRCameraFrameExifDataMeteringMode meteringMode
{
get => m_MeteringMode;
set => m_MeteringMode = value;
}
///
/// Get the photographic sensitivity (ISO).
///
/// The photographic sensitivity (ISO).
public short photographicSensitivity
{
get => m_PhotographicSensitivity;
set => m_PhotographicSensitivity = value;
}
}
}