/// <summary> /// Initializes a new <see cref="TimeGradient"/> from a <see cref="BinaryReader"/> /// </summary> /// <param name="br">The <see cref="BinaryReader"/> to read from</param> public TimeGradient(BinaryReader br) { this.Type = br.ReadInt32(); uint usedValueCount = br.ReadUInt32(); for (int i = 0; i < usedValueCount; i++) { this.Values[i] = new TimeGradientValue(br); } for (int i = 0; i < 8 - usedValueCount; i++) { TimeGradientValue value = new TimeGradientValue(br); } }
/// <summary> /// Creates a clone of a <see cref="TimeGradientValue"/> object /// </summary> /// <param name="timeGradientValue">The <see cref="TimeGradientValue"/> to clone</param> public TimeGradientValue(TimeGradientValue timeGradientValue) { this.Time = timeGradientValue.Time; this.Value = new Vector4(timeGradientValue.Value); }