Exemplo n.º 1
0
 private serializableUnityARLightData(UnityARLightData lightData)
 {
     whichLight = lightData.arLightingType;
     if (whichLight == LightDataType.DirectionalLightEstimate)
     {
         lightSHC = lightData.arDirectonalLightEstimate.sphericalHarmonicsCoefficients;
         Vector3 primaryLightDirection = lightData.arDirectonalLightEstimate.primaryLightDirection;
         float   primaryLightIntensity = lightData.arDirectonalLightEstimate.primaryLightIntensity;
         primaryLightDirAndIntensity = new SerializableVector4(primaryLightDirection.x, primaryLightDirection.y, primaryLightDirection.z, primaryLightIntensity);
     }
     else
     {
         ambientIntensity        = lightData.arLightEstimate.ambientIntensity;
         ambientColorTemperature = lightData.arLightEstimate.ambientColorTemperature;
     }
 }
Exemplo n.º 2
0
 public serializableUnityARPlaneAnchor(serializableUnityARMatrix4x4 wt, SerializableVector4 ctr, SerializableVector4 ext, ARPlaneAnchorAlignment apaa, byte[] idstr)
 {
     worldTransform = wt;
     center         = ctr;
     extent         = ext;
     planeAlignment = apaa;
     identifierStr  = idstr;
 }
Exemplo n.º 3
0
 public serializableUnityARMatrix4x4(SerializableVector4 v0, SerializableVector4 v1, SerializableVector4 v2, SerializableVector4 v3)
 {
     column0 = v0;
     column1 = v1;
     column2 = v2;
     column3 = v3;
 }