示例#1
0
 /// <summary>
 /// Loading the settings from a settings file (profile)
 /// </summary>
 public void LoadSettings()
 {
     MaxHeight            = UsedProfile.MaxHeight;
     Invert               = UsedProfile.Invert;
     Threshold            = UsedProfile.Threshold;
     HeighGradient        = UsedProfile.HeighGradient;
     AlwaysDrawBottomCube = UsedProfile.AlwaysDrawBottomCube;
     ColorOffset          = UsedProfile.ColorTranslation;
     ColorScaling         = UsedProfile.ColorScaling;
     VisualisationMethod  = UsedProfile.VisualisationMethod;
     BlurRotation         = UsedProfile.BlurRotation;
 }
示例#2
0
    /// <summary>
    /// Loading the settings from a settings file (profile)
    /// </summary>
    public void LoadSettings()
    {
        if (UsedProfile.Texture != null)
        {
            TextureToBlur = UsedProfile.Texture;
        }


        MaxHeight            = UsedProfile.MaxHeight;
        Invert               = UsedProfile.Invert;
        Threshold            = UsedProfile.Threshold;
        HeighGradient        = UsedProfile.HeighGradient;
        AlwaysDrawBottomCube = UsedProfile.AlwaysDrawBottomCube;
        ColorOffset          = UsedProfile.ColorTranslation;
        ColorScaling         = UsedProfile.ColorScaling;
        VisualisationMethod  = UsedProfile.VisualisationMethod;
        BlurRotation         = UsedProfile.BlurRotation;


        Lightning.MainCamera.transform.position = UsedProfile.CameraPosition;
        Lightning.MainCamera.transform.rotation = UsedProfile.CameraRotation;


        Lightning.MainLight.transform.position = UsedProfile.SunPosition;
        Lightning.MainLight.transform.rotation = UsedProfile.SunRotation;
        Lightning.MainLight.color     = UsedProfile.SunColor;
        Lightning.MainLight.intensity = UsedProfile.SunIntensity;


        Lightning.Spotlight1.transform.position = UsedProfile.Light1Position;
        Lightning.Spotlight1.transform.rotation = UsedProfile.Light1Rotation;
        Lightning.Spotlight1.color     = UsedProfile.Light1Color;
        Lightning.Spotlight1.intensity = UsedProfile.Light1Intensity;
        Lightning.Spotlight1.range     = UsedProfile.Light1Range;
        Lightning.Spotlight1.type      = UsedProfile.Light1Type;

        Lightning.Spotlight2.transform.position = UsedProfile.Light2Position;
        Lightning.Spotlight2.transform.rotation = UsedProfile.Light2Rotation;
        Lightning.Spotlight2.color     = UsedProfile.Light2Color;
        Lightning.Spotlight2.intensity = UsedProfile.Light2Intensity;
        Lightning.Spotlight2.range     = UsedProfile.Light2Range;
        Lightning.Spotlight2.type      = UsedProfile.Light2Type;

        Lightning.Spotlight3.transform.position = UsedProfile.Light3Position;
        Lightning.Spotlight3.transform.rotation = UsedProfile.Light3Rotation;
        Lightning.Spotlight3.color     = UsedProfile.Light3Color;
        Lightning.Spotlight3.intensity = UsedProfile.Light3Intensity;
        Lightning.Spotlight3.range     = UsedProfile.Light3Range;
        Lightning.Spotlight3.type      = UsedProfile.Light3Type;
    }
示例#3
0
    void loadSettingsFromJson(string file)
    {
        string json = File.ReadAllText(file);
        MeshCreationExportSettings export = JsonUtility.FromJson <MeshCreationExportSettings>(json);

        AlwaysDrawBottomCube = export.AlwaysDrawBottomCube;
        BlurRotation         = export.BlurRotation;
        ColorScaling         = export.ColorScaling;
        ColorOffset          = export.ColorTranslation;
        HeighGradient        = export.HeighGradient;
        Invert              = export.Invert;
        MaxHeight           = export.MaxHeight;
        Threshold           = export.Threshold;
        VisualisationMethod = export.VisualisationMethod;
    }