/// <summary>
 /// Initialize a texture reference instance with a referenced texture name.
 /// </summary>
 /// <param name="refTextureName">Name of the referenced texture.</param>
 /// <param name="parent">Parent of the texture reference node. Value is null if not specified.</param>
 public RWTextureReference(string refTextureName, RWNode parent = null)
     : base(RWNodeType.TextureReference, parent)
 {
     // Create a struct with default values
     _struct = new RWTextureReferenceStruct(this);
     _refTexName = new RWString(refTextureName, this);
     _refTexMaskName = new RWString(string.Empty, this);
     _extension = new RWExtension(new RWSkyMipMapValue());
     _extension.Parent = this;
 }
 /// <summary>
 /// Initializer only to be called in <see cref="RWNodeFactory.GetNode(RWNode, BinaryReader)"/>
 /// </summary>
 internal RWTextureReference(RWNodeFactory.RWNodeInfo header, BinaryReader reader)
     : base(header)
 {
     _struct = RWNodeFactory.GetNode<RWTextureReferenceStruct>(this, reader);
     _refTexName = RWNodeFactory.GetNode<RWString>(this, reader);
     _refTexMaskName = RWNodeFactory.GetNode<RWString>(this, reader);
     _extension = RWNodeFactory.GetNode<RWExtension>(this, reader);
 }