示例#1
0
        /// <summary>
        /// Save current settings to default settings
        /// </summary>
        public void SaveCurrentToDefault()
        {
            defaultProceduralSunIntensity           = proceduralSunIntensity;
            defaultProceduralLWRPSunIntensity       = proceduralLWRPSunIntensity;
            defaultProceduralHDRPSunIntensity       = proceduralHDRPSunIntensity;
            defaultProceduralSunColor               = proceduralSunColor;
            defaultProceduralSunSize                = proceduralSunSize;
            defaultHDRPProceduralSunSize            = hdrpProceduralSunSize;
            defaultProceduralSunSizeConvergence     = proceduralSunSizeConvergence;
            defaultHDRPProceduralSunSizeConvergence = hdrpProceduralSunSizeConvergence;
            defaultProceduralAtmosphereThickness    = proceduralAtmosphereThickness;
            defaultProceduralGroundColor            = proceduralGroundColor;
            defaultProceduralSkyTint                = proceduralSkyTint;
            defaultProceduralSkyExposure            = proceduralSkyExposure;
            defaultProceduralSkyboxRotation         = proceduralSkyboxRotation;
            defaultProceduralSkyboxPitch            = proceduralSkyboxPitch;
            defaultIncludeSunInBaking               = includeSunInBaking;
            defaultUseSkies = useSkies;
            defaultSkyboxGroundIntensity   = skyboxGroundIntensity;
            defaultSkyboxRotation          = skyboxRotation;
            defaultSkyboxPitch             = skyboxPitch;
            defaultShadowDistance          = shadowDistance;
            defaultShadowType              = shadowType;
            defaultShadowStrength          = shadowStrength;
            defaultIndirectLightMultiplier = indirectLightMultiplier;

            defaultProceduralFogColor        = proceduralFogColor;
            defaultProceduralFogDistance     = proceduralFogDistance;
            defaultProceduralNearFogDistance = proceduralNearFogDistance;
            defaultProceduralFogDensity      = proceduralFogDensity;

            defaultScaleHorizonObjectWithFog = scaleHorizonObjectWithFog;
            defaultHorizonSkyEnabled         = horizonSkyEnabled;
            defaultHorizonBlend            = horizonBlend;
            defaultHorizonFalloff          = horizonFalloff;
            defaultHorizonFogDensity       = horizonFogDensity;
            defaultHorizonScattering       = horizonScattering;
            defaultHorizonSize             = horizonSize;
            defaultFollowPlayer            = followPlayer;
            defaultHorizonPosition         = horizonPosition;
            defaultHorizonUpdateTime       = horizonUpdateTime;
            defaultAmbientMode             = ambientMode;
            defaultSkyColor                = skyColor;
            defaultEquatorColor            = equatorColor;
            defaultGroundColor             = groundColor;
            defaultLWRPSkyColor            = lwrpSkyColor;
            defaultLWRPEquatorColor        = lwrpEquatorColor;
            defaultLWRPGroundColor         = lwrpGroundColor;
            defaultShadowQuality           = shadowQuality;
            defaultShadowmaskMode          = shadowmaskMode;
            defaultShadowQuality           = shadowQuality;
            defaultShadowResolution        = shadowResolution;
            defaultShadowProjection        = shadowProjection;
            defaultCascadeCount            = cascadeCount;
            defaultEnableSunDisk           = enableSunDisk;
            defaultProceduralSkyMultiplier = proceduralSkyMultiplier;

            defaultIsGlobal      = isGlobal;
            defaultBlendDistance = blendDistance;
            defaultWeight        = weight;
            defaultPriority      = priority;

            defaultHDRIExposure         = hDRIExposure;
            defaultHDRIMultiplier       = hDRIMultiplier;
            defaultHDRIUpdateMode       = hDRIUpdateMode;
            defaultHDRIRotation         = hDRIRotation;
            defaultMaxShadowDistance    = maxShadowDistance;
            defaultCascadeSplit1        = cascadeSplit1;
            defaultCascadeSplit2        = cascadeSplit2;
            defaultCascadeSplit3        = cascadeSplit3;
            defaultUseContactShadows    = useContactShadows;
            defaultContactShadowsLength = contactShadowsLength;
            defaultContactShadowsDistanceScaleFactor = contactShadowsDistanceScaleFactor;
            defaultContactShadowsMaxDistance         = contactShadowsMaxDistance;
            defaultContactShadowsFadeDistance        = contactShadowsFadeDistance;
            defaultContactShadowsSampleCount         = contactShadowsSampleCount;
            defaultContactShadowsOpacity             = contactShadowsOpacity;
            defaultUseMicroShadowing  = useMicroShadowing;
            defaultMicroShadowOpacity = microShadowOpacity;
            defaultVolumetricSingleScatteringAlbedo = volumetricSingleScatteringAlbedo;
            defaultVolumetricBaseFogDistance        = volumetricBaseFogDistance;
            defaultVolumetricBaseFogHeight          = volumetricBaseFogHeight;
            defaultVolumetricMeanHeight             = volumetricMeanHeight;
            defaultVolumetricGlobalAnisotropy       = volumetricGlobalAnisotropy;
            defaultVolumetricGlobalLightProbeDimmer = volumetricGlobalLightProbeDimmer;
            defaultVolumetricMaxFogDistance         = volumetricMaxFogDistance;
            defaultVolumetricEnableDistanceFog      = volumetricEnableDistanceFog;

            defaultVolumetricConstFogColor      = volumetricConstFogColor;
            defaultVolumetricMipFogNear         = volumetricMipFogNear;
            defaultVolumetricMipFogFar          = volumetricMipFogFar;
            defaultVolumetricMipFogMaxMip       = volumetricMipFogMaxMip;
            defaultExponentialFogDensity        = exponentialFogDensity;
            defaultExponentialBaseHeight        = exponentialBaseHeight;
            defaultExponentialHeightAttenuation = exponentialHeightAttenuation;
            defaultExponentialMaxFogDistance    = exponentialMaxFogDistance;
            defaultExponentialMipFogNear        = exponentialMipFogNear;
            defaultExponentialMipFogFar         = exponentialMipFogFar;
            defaultExponentialMipFogMaxMip      = exponentialMipFogMaxMip;
            defaultLinearFogDensity             = linearFogDensity;
            defaultLinearHeightStart            = linearHeightStart;
            defaultLinearHeightEnd         = linearHeightEnd;
            defaultLinearMaxFogDistance    = linearMaxFogDistance;
            defaultLinearMipFogNear        = linearMipFogNear;
            defaultLinearMipFogFar         = linearMipFogFar;
            defaultLinearMipFogMaxMip      = linearMipFogMaxMip;
            defaultVolumetricDistanceRange = volumetricDistanceRange;
            defaultVolumetricSliceDistributionUniformity = volumetricSliceDistributionUniformity;
            defaultIndirectDiffuseIntensity     = indirectDiffuseIntensity;
            defaultIndirectSpecularIntensity    = indirectSpecularIntensity;
            defaultEnableScreenSpaceReflections = enableScreenSpaceReflections;
            defaultScreenEdgeFadeDistance       = screenEdgeFadeDistance;
            defaultMaxNumberOfRaySteps          = maxNumberOfRaySteps;
            defaultObjectThickness              = objectThickness;
            defaultMinSmoothness                = minSmoothness;
            defaultSmoothnessFadeStart          = smoothnessFadeStart;
            defaultReflectSky                   = reflectSky;
            defaultEnableScreenSpaceRefractions = enableScreenSpaceRefractions;
            defaultScreenWeightDistance         = screenWeightDistance;
            defaultUseBakingSky                 = useBakingSky;
            defaultUseFogDensityVolume          = useFogDensityVolume;
            defaultSingleScatteringAlbedo       = singleScatteringAlbedo;
            defaultDensityVolumeFogDistance     = densityVolumeFogDistance;
            defaultFogDensityMaskTexture        = fogDensityMaskTexture;
            defaultDensityMaskTiling            = densityMaskTiling;
            defaultDensityScale                 = densityScale;
            defaultHDRPFogDistance              = hDRPFogDistance;

#if HDPipeline
#if UNITY_2018_3_OR_NEWER
            defaultVolumeProfile          = volumeProfile;
            defaultVolumetricFogColorMode = volumetricFogColorMode;
            defaultFogColorMode           = fogColorMode;
            defaultHDRISkyIntensityMode   = hDRISkyIntensityMode;
#endif
#endif
        }
示例#2
0
        /// <summary>
        /// Revert current settings back to default settings
        /// </summary>
        public void RevertToDefault()
        {
            proceduralSunSize                = defaultProceduralSunSize;
            hdrpProceduralSunSize            = defaultHDRPProceduralSunSize;
            proceduralSunSizeConvergence     = defaultProceduralSunSizeConvergence;
            hdrpProceduralSunSizeConvergence = defaultHDRPProceduralSunSizeConvergence;
            proceduralAtmosphereThickness    = defaultProceduralAtmosphereThickness;
            proceduralGroundColor            = defaultProceduralGroundColor;
            proceduralSkyTint                = defaultProceduralSkyTint;
            proceduralSkyExposure            = defaultProceduralSkyExposure;
            proceduralSunColor               = defaultProceduralSunColor;
            proceduralSunIntensity           = defaultProceduralSunIntensity;
            proceduralLWRPSunIntensity       = defaultProceduralLWRPSunIntensity;
            proceduralHDRPSunIntensity       = defaultProceduralHDRPSunIntensity;
            proceduralFogColor               = defaultProceduralFogColor;
            proceduralFogDistance            = defaultProceduralFogDistance;
            proceduralNearFogDistance        = defaultProceduralNearFogDistance;
            proceduralFogDensity             = defaultProceduralFogDensity;
            proceduralSkyboxRotation         = defaultProceduralSkyboxRotation;
            proceduralSkyboxPitch            = defaultProceduralSkyboxPitch;
            includeSunInBaking               = defaultIncludeSunInBaking;
            useSkies = defaultUseSkies;
            skyboxGroundIntensity   = defaultSkyboxGroundIntensity;
            skyboxRotation          = defaultSkyboxRotation;
            skyboxPitch             = defaultSkyboxPitch;
            shadowStrength          = defaultShadowStrength;
            indirectLightMultiplier = defaultIndirectLightMultiplier;
            shadowDistance          = defaultShadowDistance;
            shadowType = defaultShadowType;

            scaleHorizonObjectWithFog = defaultScaleHorizonObjectWithFog;
            horizonSkyEnabled         = defaultHorizonSkyEnabled;
            horizonBlend            = defaultHorizonBlend;
            horizonFalloff          = defaultHorizonFalloff;
            horizonFogDensity       = defaultHorizonFogDensity;
            horizonScattering       = defaultHorizonScattering;
            horizonSize             = defaultHorizonSize;
            followPlayer            = defaultFollowPlayer;
            horizonPosition         = defaultHorizonPosition;
            horizonUpdateTime       = defaultHorizonUpdateTime;
            ambientMode             = defaultAmbientMode;
            skyColor                = defaultSkyColor;
            equatorColor            = defaultEquatorColor;
            groundColor             = defaultGroundColor;
            lwrpSkyColor            = defaultLWRPSkyColor;
            lwrpEquatorColor        = defaultLWRPEquatorColor;
            lwrpGroundColor         = defaultLWRPGroundColor;
            shadowQuality           = defaultShadowQuality;
            shadowmaskMode          = defaultShadowmaskMode;
            shadowResolution        = defaultShadowResolution;
            shadowProjection        = defaultShadowProjection;
            cascadeCount            = defaultCascadeCount;
            enableSunDisk           = defaultEnableSunDisk;
            proceduralSkyMultiplier = defaultProceduralSkyMultiplier;

            isGlobal      = defaultIsGlobal;
            blendDistance = defaultBlendDistance;
            weight        = defaultWeight;
            priority      = defaultPriority;

            maxShadowDistance    = defaultMaxShadowDistance;
            cascadeSplit1        = defaultCascadeSplit1;
            cascadeSplit2        = defaultCascadeSplit2;
            cascadeSplit3        = defaultCascadeSplit3;
            useContactShadows    = defaultUseContactShadows;
            contactShadowsLength = defaultContactShadowsLength;
            contactShadowsDistanceScaleFactor = defaultContactShadowsDistanceScaleFactor;
            contactShadowsMaxDistance         = defaultContactShadowsMaxDistance;
            contactShadowsFadeDistance        = defaultContactShadowsFadeDistance;
            contactShadowsSampleCount         = defaultContactShadowsSampleCount;
            contactShadowsOpacity             = defaultContactShadowsOpacity;
            useMicroShadowing  = defaultUseMicroShadowing;
            microShadowOpacity = defaultMicroShadowOpacity;

            hDRIExposure   = defaultHDRIExposure;
            hDRIMultiplier = defaultHDRIMultiplier;
            hDRIUpdateMode = defaultHDRIUpdateMode;
            hDRIRotation   = defaultHDRIRotation;

            volumetricSingleScatteringAlbedo = defaultVolumetricSingleScatteringAlbedo;
            volumetricBaseFogDistance        = defaultVolumetricBaseFogDistance;
            volumetricBaseFogHeight          = defaultVolumetricBaseFogHeight;
            volumetricMeanHeight             = defaultVolumetricMeanHeight;
            volumetricGlobalAnisotropy       = defaultVolumetricGlobalAnisotropy;
            volumetricGlobalLightProbeDimmer = defaultVolumetricGlobalLightProbeDimmer;
            volumetricMaxFogDistance         = defaultVolumetricMaxFogDistance;
            volumetricEnableDistanceFog      = defaultVolumetricEnableDistanceFog;
            volumetricConstFogColor          = defaultVolumetricConstFogColor;
            volumetricMipFogNear             = defaultVolumetricMipFogNear;
            volumetricMipFogFar     = defaultVolumetricMipFogFar;
            volumetricMipFogMaxMip  = defaultVolumetricMipFogMaxMip;
            volumetricDistanceRange = defaultVolumetricDistanceRange;
            volumetricSliceDistributionUniformity = defaultVolumetricSliceDistributionUniformity;
            exponentialBaseHeight        = defaultExponentialBaseHeight;
            exponentialHeightAttenuation = defaultExponentialHeightAttenuation;
            exponentialMaxFogDistance    = defaultExponentialMaxFogDistance;
            exponentialMipFogNear        = defaultExponentialMipFogNear;
            exponentialMipFogFar         = defaultExponentialMipFogFar;
            exponentialMipFogMaxMip      = defaultExponentialMipFogMaxMip;
            linearHeightStart            = defaultLinearHeightStart;
            linearHeightEnd              = defaultLinearHeightEnd;
            linearMaxFogDistance         = defaultLinearMaxFogDistance;
            linearMipFogNear             = defaultLinearMipFogNear;
            linearMipFogFar              = defaultLinearMipFogFar;
            linearMipFogMaxMip           = defaultLinearMipFogMaxMip;
            indirectDiffuseIntensity     = defaultIndirectDiffuseIntensity;
            indirectSpecularIntensity    = defaultIndirectSpecularIntensity;
            enableScreenSpaceReflections = defaultEnableScreenSpaceReflections;
            screenEdgeFadeDistance       = defaultScreenEdgeFadeDistance;
            maxNumberOfRaySteps          = defaultMaxNumberOfRaySteps;
            objectThickness              = defaultObjectThickness;
            minSmoothness                = defaultMinSmoothness;
            smoothnessFadeStart          = defaultSmoothnessFadeStart;
            reflectSky                   = defaultReflectSky;
            enableScreenSpaceRefractions = defaultEnableScreenSpaceRefractions;
            screenWeightDistance         = defaultScreenWeightDistance;
            useBakingSky                 = defaultUseBakingSky;
            useFogDensityVolume          = defaultUseFogDensityVolume;
            singleScatteringAlbedo       = defaultSingleScatteringAlbedo;
            densityVolumeFogDistance     = defaultDensityVolumeFogDistance;
            fogDensityMaskTexture        = defaultFogDensityMaskTexture;
            densityMaskTiling            = defaultDensityMaskTiling;
            densityScale                 = defaultDensityScale;
            linearFogDensity             = defaultLinearFogDensity;
            exponentialFogDensity        = defaultExponentialFogDensity;
            hDRPFogDistance              = defaultHDRPFogDistance;

#if HDPipeline
#if UNITY_2018_3_OR_NEWER
            volumeProfile          = defaultVolumeProfile;
            volumetricFogColorMode = defaultVolumetricFogColorMode;
            hDRISkyIntensityMode   = defaultHDRISkyIntensityMode;
            fogColorMode           = defaultFogColorMode;
#endif
#endif
        }