Example #1
0
        ///// <summary>
        ///// Creates a new SkinnedEffect by cloning parameter settings from an existing instance.
        ///// </summary>
        //protected SkinnedEffect(SkinnedEffect cloneSource)
        //    : base(cloneSource)
        //{
        //    CacheEffectParameters(cloneSource);

        //    preferPerPixelLighting = cloneSource.preferPerPixelLighting;
        //    fogEnabled = cloneSource.fogEnabled;

        //    world = cloneSource.world;
        //    view = cloneSource.view;
        //    projection = cloneSource.projection;

        //    diffuseColor = cloneSource.diffuseColor;
        //    emissiveColor = cloneSource.emissiveColor;
        //    ambientLightColor = cloneSource.ambientLightColor;

        //    alpha = cloneSource.alpha;

        //    fogStart = cloneSource.fogStart;
        //    fogEnd = cloneSource.fogEnd;

        //    weightsPerVertex = cloneSource.weightsPerVertex;
        //}


        ///// <summary>
        ///// Creates a clone of the current SkinnedEffect instance.
        ///// </summary>
        //public override Effect Clone()
        //{
        //    return new SkinnedEffect(this);
        //}

        /// <summary>
        /// Sets up the standard key/fill/back lighting rig.
        /// </summary>
        public void EnableDefaultLighting()
        {
            AmbientLightColor = EffectHelpers.EnableDefaultLighting(light0, light1, light2);
        }