Constructor XRCameraFrame
XRCameraFrame(long, float, float, Color, Matrix4x4, Matrix4x4, TrackingState, IntPtr, XRCameraFrameProperties, float, double, float, float, Color, Vector3, SphericalHarmonicsL2, XRTextureDescriptor, float)
Creates a XRCameraFrame.
Declaration
public XRCameraFrame(long timestamp, float averageBrightness, float averageColorTemperature, Color colorCorrection, Matrix4x4 projectionMatrix, Matrix4x4 displayMatrix, TrackingState trackingState, IntPtr nativePtr, XRCameraFrameProperties properties, float averageIntensityInLumens, double exposureDuration, float exposureOffset, float mainLightIntensityInLumens, Color mainLightColor, Vector3 mainLightDirection, SphericalHarmonicsL2 ambientSphericalHarmonics, XRTextureDescriptor cameraGrain, float noiseIntensity)
Parameters
| Type | Name | Description |
|---|---|---|
| long | timestamp | The timestamp of the frame, in nanoseconds. |
| float | averageBrightness | The estimated intensity of the frame, in gamma color space. |
| float | averageColorTemperature | The estimated color temperature of the frame. |
| Color | colorCorrection | The estimated color correction value of the frame. |
| Matrix4x4 | projectionMatrix | The 4x4 projection matrix for the frame. |
| Matrix4x4 | displayMatrix | The 4x4 display matrix for the frame. |
| TrackingState | trackingState | The camera's TrackingState when the frame was captured. |
| IntPtr | nativePtr | The native pointer associated with the frame. |
| XRCameraFrameProperties | properties | The set of flags that indicates which properties are included in the frame.. |
| float | averageIntensityInLumens | The estimated intensity of the real-world environment, in lumens. |
| double | exposureDuration | The camera exposure duration of the frame, in seconds with sub-millisecond precision. |
| float | exposureOffset | The camera exposure offset of the frame for lighting scaling. |
| float | mainLightIntensityInLumens | The estimated intensity in lumens of strongest real-world directional light source. |
| Color | mainLightColor | The estimated color of the strongest real-world directional light source. |
| Vector3 | mainLightDirection | The estimated direction of the strongest real-world directional light source. |
| SphericalHarmonicsL2 | ambientSphericalHarmonics | The ambient spherical harmonic coefficients that represent the real-world lighting. |
| XRTextureDescriptor | cameraGrain | A texture that simulates the camera's noise. |
| float | noiseIntensity | The level of intensity of camera grain noise in a scene. |
XRCameraFrame(long, float, float, Color, Matrix4x4, Matrix4x4, TrackingState, IntPtr, XRCameraFrameProperties, float, double, float, float, Color, Vector3, SphericalHarmonicsL2, XRTextureDescriptor, float, XRCameraFrameExifData)
Creates a XRCameraFrame with EXIF data.
Declaration
public XRCameraFrame(long timestamp, float averageBrightness, float averageColorTemperature, Color colorCorrection, Matrix4x4 projectionMatrix, Matrix4x4 displayMatrix, TrackingState trackingState, IntPtr nativePtr, XRCameraFrameProperties properties, float averageIntensityInLumens, double exposureDuration, float exposureOffset, float mainLightIntensityInLumens, Color mainLightColor, Vector3 mainLightDirection, SphericalHarmonicsL2 ambientSphericalHarmonics, XRTextureDescriptor cameraGrain, float noiseIntensity, XRCameraFrameExifData exifData)
Parameters
| Type | Name | Description |
|---|---|---|
| long | timestamp | The timestamp of the frame, in nanoseconds. |
| float | averageBrightness | The estimated intensity of the frame, in gamma color space. |
| float | averageColorTemperature | The estimated color temperature of the frame. |
| Color | colorCorrection | The estimated color correction value of the frame. |
| Matrix4x4 | projectionMatrix | The 4x4 projection matrix for the frame. |
| Matrix4x4 | displayMatrix | The 4x4 display matrix for the frame. |
| TrackingState | trackingState | The camera's TrackingState when the frame was captured. |
| IntPtr | nativePtr | The native pointer associated with the frame. |
| XRCameraFrameProperties | properties | The set of flags that indicates which properties are included in the frame. |
| float | averageIntensityInLumens | The estimated intensity of the real-world environment, in lumens. |
| double | exposureDuration | The camera exposure duration of the frame, in seconds with sub-millisecond precision. |
| float | exposureOffset | The camera exposure offset of the frame for lighting scaling. |
| float | mainLightIntensityInLumens | The estimated intensity in lumens of strongest real-world directional light source. |
| Color | mainLightColor | The estimated color of the strongest real-world directional light source. |
| Vector3 | mainLightDirection | The estimated direction of the strongest real-world directional light source. |
| SphericalHarmonicsL2 | ambientSphericalHarmonics | The ambient spherical harmonic coefficients that represent the real-world lighting. |
| XRTextureDescriptor | cameraGrain | A texture that simulates the camera's noise. |
| float | noiseIntensity | The level of intensity of camera grain noise in a scene. |
| XRCameraFrameExifData | exifData | The EXIF data. |