/// <summary>
        ///		Copy the details of this Technique to another.
        /// </summary>
        /// <param name="target"></param>
        public void CopyTo(Technique target)
        {
            target.name        = name;
            target.isSupported = isSupported;
            target.lodIndex    = lodIndex;
            target.schemeIndex = schemeIndex;

            target.RemoveAllPasses();

            // clone each pass and add that to the new technique
            for (int i = 0; i < passes.Count; i++)
            {
                Pass pass    = (Pass)passes[i];
                Pass newPass = pass.Clone(target, pass.Index);
                target.passes.Add(newPass);
            }

            // Compile for categorised illumination on demand
            target.ClearIlluminationPasses();
            target.illuminationPassesCompilationPhase = IlluminationPassesState.NotCompiled;
        }