/// <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; }
/// <summary> /// Copy the details of this Technique to another. /// </summary> /// <param name="target"></param> public void CopyTo( Technique target ) { target._isSupported = _isSupported; target.SchemeIndex = SchemeIndex; target._lodIndex = _lodIndex; target.RemoveAllPasses(); // clone each pass and add that to the new technique for ( int i = 0; i < _passes.Count; i++ ) { Pass pass = _passes[ i ]; Pass newPass = pass.Clone( target, pass.Index ); target._passes.Add( newPass ); } // Compile for categorized illumination on demand ClearIlluminationPasses(); _illuminationPassesCompilationPhase = IlluminationPassesCompilationPhase.NotCompiled; }
/// <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; }