public UnityARCamera(UnityARMatrix4x4 wt, UnityARMatrix4x4 pm, ARTrackingState ats, ARTrackingStateReason atsr, UnityVideoParams uvp, UnityARLightData lightDat, UnityARMatrix4x4 dt, Vector3[] pointCloud) { worldTransform = wt; projectionMatrix = pm; trackingState = ats; trackingReason = atsr; videoParams = uvp; lightData = lightDat; displayTransform = dt; pointCloudData = pointCloud; }
serializableUnityARLightData(UnityARLightData lightData) { whichLight = lightData.arLightingType; if (whichLight == LightDataType.DirectionalLightEstimate) { lightSHC = lightData.arDirectonalLightEstimate.sphericalHarmonicsCoefficients; Vector3 lightDir = lightData.arDirectonalLightEstimate.primaryLightDirection; float lightIntensity = lightData.arDirectonalLightEstimate.primaryLightIntensity; primaryLightDirAndIntensity = new SerializableVector4(lightDir.x, lightDir.y, lightDir.z, lightIntensity); } else { ambientIntensity = lightData.arLightEstimate.ambientIntensity; ambientColorTemperature = lightData.arLightEstimate.ambientColorTemperature; } }
public serializableUnityARCamera(serializableUnityARMatrix4x4 wt, serializableUnityARMatrix4x4 pm, ARTrackingState ats, ARTrackingStateReason atsr, UnityVideoParams uvp, UnityARLightData lightDat, serializableUnityARMatrix4x4 dt, serializablePointCloud spc) { worldTransform = wt; projectionMatrix = pm; trackingState = ats; trackingReason = atsr; videoParams = uvp; lightData = lightDat; displayTransform = dt; pointCloud = spc; }