/// <summary>
        ///		Applies texture names to Texture Unit State with matching texture name aliases.
        ///		All techniques, passes, and Texture Unit States within the material are checked.
        ///		If matching texture aliases are found then true is returned.
        /// </summary>
        /// <param name="aliasList">A map container of texture alias, texture name pairs.</param>
        /// <param name="apply">Set to true to apply the texture aliases else just test to see if texture alias matches are found.</param>
        /// <returns>True if matching texture aliases were found in the material.</returns>
        public bool ApplyTextureAliases(Dictionary <string, string> aliasList, bool apply)
        {
            bool testResult = false;

            // iterate through passes and apply texture alias
            for (int i = 0; i < passes.Count; i++)
            {
                Pass pass = (Pass)passes[i];
                if (pass.ApplyTextureAliases(aliasList, apply))
                {
                    testResult = true;
                }
            }
            return(testResult);
        }