예제 #1
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;
     }
 }
예제 #2
0
 public serializableUnityARMatrix4x4(SerializableVector4 v0, SerializableVector4 v1, SerializableVector4 v2, SerializableVector4 v3)
 {
     column0 = v0;
     column1 = v1;
     column2 = v2;
     column3 = v3;
 }
예제 #3
0
 public serializableUnityARPlaneAnchor(serializableUnityARMatrix4x4 wt, SerializableVector4 ctr, SerializableVector4 ext, ARPlaneAnchorAlignment apaa,
                                       serializablePlaneGeometry spg, byte [] idstr)
 {
     worldTransform = wt;
     center         = ctr;
     extent         = ext;
     planeAlignment = apaa;
     identifierStr  = idstr;
     planeGeometry  = spg;
 }