Esempio n. 1
0
        /// <inheritdoc/>
        protected override void CloneCore(Shadow source)
        {
            // Clone Shadow properties.
            base.CloneCore(source);

            // Clone CascadedShadow properties.
            var sourceTyped = (VarianceShadow)source;

            MinLightDistance       = sourceTyped.MinLightDistance;
            MaxDistance            = sourceTyped.MaxDistance;
            FadeOutRange           = sourceTyped.FadeOutRange;
            ShadowFog              = sourceTyped.ShadowFog;
            Filter                 = sourceTyped.Filter;
            IsLocked               = sourceTyped.IsLocked;
            MinVariance            = sourceTyped.MinVariance;
            LightBleedingReduction = sourceTyped.LightBleedingReduction;
            TargetArea             = sourceTyped.TargetArea;

            // ShadowMap is not cloned!
        }
Esempio n. 2
0
        /// <inheritdoc/>
        protected override void CloneCore(Shadow source)
        {
            // Clone Shadow properties.
            base.CloneCore(source);

            // Clone CubeMapShadow properties.
            var sourceTyped = (CubeMapShadow)source;

            Near             = sourceTyped.Near;
            DepthBias        = sourceTyped.DepthBias;
            NormalOffset     = sourceTyped.NormalOffset;
            NumberOfSamples  = sourceTyped.NumberOfSamples;
            FilterRadius     = sourceTyped.FilterRadius;
            JitterResolution = sourceTyped.JitterResolution;
#pragma warning disable 618
            DepthBiasScale  = sourceTyped.DepthBiasScale;
            DepthBiasOffset = sourceTyped.DepthBiasOffset;
#pragma warning restore 618

            // ShadowMap is not cloned!
        }