コード例 #1
0
 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;
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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;
 }