Beispiel #1
0
 public LodVertex(short lodblendindex, short lodnormindex, float u, float v)
 {
     _LodBlendIndex = lodblendindex;
     _LodNormIndex  = lodnormindex;
     _UV            = new TextureCoordinate(u, v);
 }
Beispiel #2
0
 public LodVertex(byte[] raw)
 {
     _LodBlendIndex = BitConverter.ToInt16(raw, 0);
     _LodNormIndex  = BitConverter.ToInt16(raw, 2);
     _UV            = new TextureCoordinate(BitConverter.ToSingle(raw, 4), BitConverter.ToSingle(raw, 8));
 }