public static Vec2Duv Read(DatReader datReader) { Vec2Duv obj = new Vec2Duv(); obj.U = datReader.ReadSingle(); obj.V = datReader.ReadSingle(); return(obj); }
public static SWVertex Read(DatReader datReader) { SWVertex obj = new SWVertex(); short num_uvs = datReader.ReadInt16(); obj.X = datReader.ReadSingle(); obj.Y = datReader.ReadSingle(); obj.Z = datReader.ReadSingle(); obj.NormalX = datReader.ReadSingle(); obj.NormalY = datReader.ReadSingle(); obj.NormalZ = datReader.ReadSingle(); for (short i = 0; i < num_uvs; i++) { obj.UVs.Add(Vec2Duv.Read(datReader)); } return(obj); }