/*
         *      Uh, do we even need temporary object with all those fields?
         *      Could just grab reflection probes themselves in this case...
         */
        public JsonReflectionProbe(ReflectionProbe obj, ResourceMapper resMap)
        {
            backgroundColor = obj.backgroundColor;
            blendDistance   = obj.blendDistance;
            boxProjection   = obj.boxProjection;
            center          = obj.center;
            size            = obj.size;

            /*clearType = (obj.clearFlags == UnityEngine.Rendering.ReflectionProbeClearFlags.Skybox) ?
             *      "skybox": "color";*/
            clearType     = obj.clearFlags.ToString();
            cullingMask   = obj.cullingMask;
            hdr           = obj.hdr;
            intensity     = obj.intensity;
            nearClipPlane = obj.nearClipPlane;
            farClipPlane  = obj.farClipPlane;
            resolution    = obj.resolution;
            mode          = obj.mode.ToString();        //getModeString(obj.mode);
            refreshMode   = obj.refreshMode.ToString(); //getModeString(obj.mode);

            var customCubemap = obj.customBakedTexture as Cubemap;
            var customTex2d   = obj.customBakedTexture as Texture2D;

            customCubemapId = resMap.getCubemapId(customCubemap);
            customTex2dId   = resMap.getTextureId(customTex2d);
        }