Exemplo n.º 1
0
        public AmbientModifier EnsurePopulated()
        {
            if (FogMin == null)
            {
                FogMin = WeightedFloat.New(0, 0);
            }
            if (FogDensity == null)
            {
                FogDensity = WeightedFloat.New(0, 0);
            }
            if (FogColor == null)
            {
                FogColor = WeightedFloatArray.New(new float[] { 0, 0, 0 }, 0);
            }
            if (FogColor.Value == null)
            {
                FogColor.Value = new float[] { 0, 0, 0 }
            }
            ;
            if (AmbientColor == null)
            {
                AmbientColor = WeightedFloatArray.New(new float[] { 0, 0, 0 }, 0);
            }
            if (AmbientColor.Value == null)
            {
                AmbientColor.Value = new float[] { 0, 0, 0 }
            }
            ;
            if (CloudDensity == null)
            {
                CloudDensity = WeightedFloat.New(0, 0);
            }
            if (CloudBrightness == null)
            {
                CloudBrightness = WeightedFloat.New(0, 0);
            }
            if (CloudYPos == null)
            {
                CloudYPos = WeightedFloat.New(1, 0);
            }
            if (LerpSpeed == null)
            {
                LerpSpeed = WeightedFloat.New(0, 0);
            }
            if (SceneBrightness == null)
            {
                SceneBrightness = WeightedFloat.New(1, 0);
            }
            if (FogBrightness == null)
            {
                FogBrightness = WeightedFloat.New(1, 0);
            }

            return(this);
        }
Exemplo n.º 2
0
        public AmbientModifier EnsurePopulated()
        {
            if (FogMin == null)
            {
                FogMin = WeightedFloat.New(0, 0);
            }
            if (FogDensity == null)
            {
                FogDensity = WeightedFloat.New(0, 0);
            }
            if (FogColor == null)
            {
                FogColor = WeightedFloatArray.New(new float[] { 0, 0, 0 }, 0);
            }
            if (FogColor.Value == null)
            {
                FogColor.Value = new float[] { 0, 0, 0 }
            }
            ;
            if (AmbientColor == null)
            {
                AmbientColor = WeightedFloatArray.New(new float[] { 0, 0, 0 }, 0);
            }
            if (AmbientColor.Value == null)
            {
                AmbientColor.Value = new float[] { 0, 0, 0 }
            }
            ;
            if (SmallCloudDensity == null)
            {
                SmallCloudDensity = WeightedFloat.New(0, 0);
            }
            if (LargeCloudDensity == null)
            {
                LargeCloudDensity = WeightedFloat.New(0, 0);
            }
            if (CloudBrightness == null)
            {
                CloudBrightness = WeightedFloat.New(0, 0);
            }
            if (LerpSpeed == null)
            {
                LerpSpeed = WeightedFloat.New(0, 0);
            }
            //if (WeatherPattern == null) WeatherPattern = new WeightedValue<EnumWeatherPattern>(EnumWeatherPattern.Gusts, 0);

            return(this);
        }